mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
feat: show_deleted_indicator (#237)
* show_deleted_messages * Update README.md --------- Co-authored-by: ouwou <26526779+ouwou@users.noreply.github.com>
This commit is contained in:
1 parent
9a5e820f6d
commit
163749e607
4 files changed
+13
-2
No files matched your search
@@ -187,8 +187,15 @@ void ChatList::DeleteMessage(Snowflake id) {
|
||||
if (widget == m_id_to_widget.end()) return;
|
||||
|
||||
auto *x = dynamic_cast<ChatMessageItemContainer *>(widget->second);
|
||||
if (x != nullptr)
|
||||
x->UpdateAttributes();
|
||||
|
||||
if (x != nullptr) {
|
||||
if (Abaddon::Get().GetSettings().ShowDeletedIndicator) {
|
||||
x->UpdateAttributes();
|
||||
} else {
|
||||
RemoveMessageAndHeader(x);
|
||||
m_id_to_widget.erase(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ChatList::RefetchMessage(Snowflake id) {
|
||||
|
||||
Reference in new issue
Block a user