Fix null pointer
Check if users is null, not the room
This commit is contained in:
parent
4c1a85cb71
commit
11f6c8cf53
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ export default class UserProvider extends AutocompleteProvider {
|
|||
}
|
||||
|
||||
onUserSpoke(user: RoomMember) {
|
||||
if (this.room === null) return;
|
||||
if (this.users === null) return;
|
||||
if (user.userId === MatrixClientPeg.get().credentials.userId) return;
|
||||
|
||||
// Move the user that spoke to the front of the array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue