Skip to content

Commit

Permalink
call getUsersPresence on RoomItem mount
Browse files Browse the repository at this point in the history
  • Loading branch information
zaphod534 committed Nov 20, 2020
1 parent df7f395 commit 844447a
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 844447a

Please sign in to comment.