Add initial support for rich replies to nheko
This commit is contained in:
parent
0840f47f83
commit
b9dde957a8
10 changed files with 65 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue