mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 11:59:12 +03:00
Do not show long click help if only invitation are displayed
This commit is contained in:
parent
2e87e0b4c1
commit
bba58d25e1
2 changed files with 8 additions and 5 deletions
|
@ -11,7 +11,7 @@ Other changes:
|
|||
-
|
||||
|
||||
Bugfix 🐛:
|
||||
-
|
||||
- Do not show long click help if only invitation are displayed
|
||||
|
||||
Translations 🗣:
|
||||
-
|
||||
|
|
|
@ -24,8 +24,8 @@ import im.vector.riotx.R
|
|||
import im.vector.riotx.core.epoxy.helpFooterItem
|
||||
import im.vector.riotx.core.epoxy.noResultItem
|
||||
import im.vector.riotx.core.resources.StringProvider
|
||||
import im.vector.riotx.features.home.RoomListDisplayMode
|
||||
import im.vector.riotx.core.resources.UserPreferencesProvider
|
||||
import im.vector.riotx.features.home.RoomListDisplayMode
|
||||
import im.vector.riotx.features.home.room.filtered.FilteredRoomFooterItem
|
||||
import im.vector.riotx.features.home.room.filtered.filteredRoomFooterItem
|
||||
import javax.inject.Inject
|
||||
|
@ -80,10 +80,13 @@ class RoomSummaryController @Inject constructor(private val stringProvider: Stri
|
|||
nonNullViewState.joiningErrorRoomsIds,
|
||||
nonNullViewState.rejectingRoomsIds,
|
||||
nonNullViewState.rejectingErrorRoomsIds)
|
||||
// Never set showHelp to true for invitation
|
||||
if (category != RoomCategory.INVITE) {
|
||||
showHelp = userPreferencesProvider.shouldShowLongClickOnRoomHelp()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (showHelp) {
|
||||
buildLongClickHelp()
|
||||
|
|
Loading…
Reference in a new issue