Show displayname on reactions

This commit is contained in:
Nicolas Werner 2020-05-06 11:28:24 +02:00
parent 8348a6c35d
commit e045e3eb1c
3 changed files with 11 additions and 6 deletions

View file

@ -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));