Skip to content

Commit

Permalink
[FIX] Initial users' status is not fetched (#2664)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaphod534 authored Dec 1, 2020
1 parent 10ba9d5 commit b61727c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/presentation/RoomItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ class RoomItemContainer extends React.Component {

componentDidMount() {
this.mounted = true;
const { connected, getUserPresence, id } = this.props;
if (connected && this.isDirect) {
getUserPresence(id);
}
}

shouldComponentUpdate(nextProps) {
Expand Down

0 comments on commit b61727c

Please sign in to comment.