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:
Tiramify (A.K. Daniel)andouwou authored and GitHub committed 2023-10-25 02:35:54 +00:00
1 parent 9a5e820f6d
commit 163749e607
4 files changed
+13 -2

No files matched your search

+9 -2
View File
@@ -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) {