Skip to content

Commit

Permalink
Merge pull request #6896 from RocketChat/hotfix/rc-users-status
Browse files Browse the repository at this point in the history
[FIX] Users status on main menu always offline
  • Loading branch information
rodrigok authored May 5, 2017
2 parents 5c47381 + 185b32e commit b2907d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/rocketchat-lib/client/lib/roomTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b2907d3

Please sign in to comment.