mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
add MESSAGE_DELETE handling
This commit is contained in:
1 parent
4e7ae1af1d
commit
299ecc71d9
12 files changed
+73
No files matched your search
@@ -62,3 +62,10 @@ void ChatMessageTextItem::PrependNewContent(std::string content) {
|
||||
auto buf = m_text->get_buffer();
|
||||
buf->set_text(content + "\n" + buf->get_text());
|
||||
}
|
||||
|
||||
void ChatMessageTextItem::MarkAsDeleted() {
|
||||
auto buf = m_text->get_buffer();
|
||||
Gtk::TextBuffer::iterator start, end;
|
||||
buf->get_bounds(start, end);
|
||||
buf->insert_markup(end, "<span color='#ff0000'> [deleted]</span>");
|
||||
}
|
||||
Reference in new issue
Block a user