Show displayname on reactions
This commit is contained in:
parent
8348a6c35d
commit
e045e3eb1c
3 changed files with 11 additions and 6 deletions
|
|
@ -619,7 +619,7 @@ TimelineModel::internalAddEvents(
|
|||
std::get_if<mtx::events::RoomEvent<mtx::events::msg::Reaction>>(&e)) {
|
||||
QString reactedTo =
|
||||
QString::fromStdString(reaction->content.relates_to.event_id);
|
||||
reactions[reactedTo].addReaction(*reaction);
|
||||
reactions[reactedTo].addReaction(room_id_.toStdString(), *reaction);
|
||||
int idx = idToIndex(reactedTo);
|
||||
if (idx >= 0)
|
||||
emit dataChanged(index(idx, 0), index(idx, 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue