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
@ -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 New Issue
Block a user