mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Sender can be null, so null check.
This commit is contained in:
parent
497cb8bc9c
commit
55c7c08ac2
@ -119,7 +119,7 @@ var RoomSubList = React.createClass({
|
||||
for (var i = room.timeline.length - 1; i >= 0; --i) {
|
||||
var ev = room.timeline[i];
|
||||
if (Unread.eventTriggersUnreadCount(ev) ||
|
||||
ev.sender.userId === MatrixClientPeg.get().credentials.userId)
|
||||
(ev.sender && ev.sender.userId === MatrixClientPeg.get().credentials.userId))
|
||||
{
|
||||
return ev.getTs();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user