added basic forwarding

This commit is contained in:
targetakhil 2021-04-11 20:01:49 +05:30
parent a6c89d1362
commit 603ff33ea6
6 changed files with 208 additions and 9 deletions

View file

@ -822,6 +822,16 @@ TimelineModel::viewRawMessage(QString id) const
Q_UNUSED(dialog);
}
void
TimelineModel::forwardMessage(QString eventId, QString roomId)
{
auto e = events.get(eventId.toStdString(), "");
if (!e)
return;
emit forwardToRoom(e, roomId, cache::isRoomEncrypted(room_id_.toStdString()));
}
void
TimelineModel::viewDecryptedRawMessage(QString id) const
{