Hide "invite" menu item

We can invite users over the "Participants" menu item as well, and
inviting users isn't something we do too often probably.

Change-Id: I0c4c77371f0b81d39b3ae65992ef0362acf83a7c
This commit is contained in:
SpiritCroc 2020-10-17 16:47:01 +02:00
parent 33d59b3ec6
commit db7a82f567
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ class RoomDetailViewModel @AssistedInject constructor(
timeline.pendingEventCount() > 0 && vectorPreferences.developerMode() timeline.pendingEventCount() > 0 && vectorPreferences.developerMode()
R.id.resend_all -> state.asyncRoomSummary()?.hasFailedSending == true R.id.resend_all -> state.asyncRoomSummary()?.hasFailedSending == true
R.id.timeline_setting -> false // identical to show_room_info (downstream) R.id.timeline_setting -> false // identical to show_room_info (downstream)
R.id.invite -> state.canInvite R.id.invite -> false // state.canInvite // SC: disabled, we can do that over show_participants as well
R.id.clear_all -> state.asyncRoomSummary()?.hasFailedSending == true R.id.clear_all -> state.asyncRoomSummary()?.hasFailedSending == true
R.id.open_matrix_apps -> session.integrationManagerService().isIntegrationEnabled() R.id.open_matrix_apps -> session.integrationManagerService().isIntegrationEnabled()
R.id.voice_call, R.id.voice_call,