Add initial support for rich replies to nheko

This commit is contained in:
Joseph Donofry 2019-06-09 19:03:18 -04:00
parent 0840f47f83
commit b9dde957a8
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
10 changed files with 65 additions and 9 deletions

View file

@ -78,6 +78,19 @@ TimelineViewManager::queueEmoteMessage(const QString &msg)
view->addUserMessage(mtx::events::MessageType::Emote, msg);
}
void
TimelineViewManager::queueReplyMessage(const QString &reply,
const QString &related_event)
{
if (active_room_.isEmpty())
return;
auto room_id = active_room_;
auto view = views_[room_id];
view->addUserMessage(mtx::events::MessageType::Text, reply, related_event);
}
void
TimelineViewManager::queueImageMessage(const QString &roomid,
const QString &filename,