mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix crash when reacting to messages from /sync
Messages on /sync don't have a room_id
This commit is contained in:
parent
f0757a6426
commit
5abdad308d
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ TimelineModel::data(const QString &id, int role) const
|
||||||
else
|
else
|
||||||
return {};
|
return {};
|
||||||
case RoomId:
|
case RoomId:
|
||||||
return QVariant(QString::fromStdString(room_id(event)));
|
return QVariant(room_id_);
|
||||||
case RoomName:
|
case RoomName:
|
||||||
return QVariant(QString::fromStdString(room_name(event)));
|
return QVariant(QString::fromStdString(room_name(event)));
|
||||||
case RoomTopic:
|
case RoomTopic:
|
||||||
|
|
Loading…
Reference in a new issue