Skip to content
Snippets Groups Projects
Commit 185b32eb authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

[FIX] Users status on main menu always offline

parent 5c47381c
No related branches found
No related tags found
No related merge requests found
......@@ -1064,8 +1064,8 @@
"from": "is-property@>=1.0.0 <2.0.0"
},
"is-stream-ended": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.0.tgz",
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.2.tgz",
"from": "is-stream-ended@>=0.1.0 <0.2.0"
},
"is-typedarray": {
......
......@@ -22,7 +22,7 @@ RocketChat.roomTypes = new class extends roomTypesCommon {
return _.map(list, (t) => t.identifier);
}
getUserStatus(roomType, roomId) {
this.roomTypes[roomType] && typeof this.roomTypes[roomType].getUserStatus === 'function' && this.roomTypes[roomType].getUserStatus(roomId);
return this.roomTypes[roomType] && typeof this.roomTypes[roomType].getUserStatus === 'function' && this.roomTypes[roomType].getUserStatus(roomId);
}
findRoom(roomType, identifier, user) {
return this.roomTypes[roomType] && this.roomTypes[roomType].findRoom(identifier, user);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment