mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
add MESSAGE_DELETE handling
This commit is contained in:
@@ -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