Load room if not present when showing notification

parent accc4385
......@@ -364,6 +364,12 @@ class NotificationData {
}
var room = user.rooms[message.roomId];
if (room == null) {
room = await user.rooms.load(
roomIds: [message.roomId],
).then((u) => u.user.rooms[message.roomId]);
}
var event = room.timeline[message.eventId];
if (event == null) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment