Skip to content

Commit

Permalink
BF: Call button should be greyed or not be displayed in room with mor…
Browse files Browse the repository at this point in the history
…e than 2 users #477

Hide call button no 1:1 room
  • Loading branch information
manuroe committed Jul 27, 2016
1 parent 24c2ed8 commit a5e89b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vector/ViewController/RoomViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ - (void)refreshRoomInputToolbar
RoomInputToolbarView *roomInputToolbarView = (RoomInputToolbarView*)self.inputToolbarView;

// Check whether the call option is supported
roomInputToolbarView.supportCallOption = (self.roomDataSource.mxSession.callManager != nil);
roomInputToolbarView.supportCallOption = (self.roomDataSource.mxSession.callManager != nil && self.roomDataSource.room.state.members.count == 2);

// Set user picture in input toolbar
MXKImageView *userPictureView = roomInputToolbarView.pictureView;
Expand Down

0 comments on commit a5e89b9

Please sign in to comment.