File tree 4 files changed +8
-8
lines changed
java/im/vector/app/features
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ import org.matrix.android.sdk.api.session.room.model.Membership
88
88
fun render (roomDetailViewState : RoomDetailViewState ) {
89
89
val summary = roomDetailViewState.asyncRoomSummary()
90
90
val newState = if (summary?.membership != Membership .JOIN ||
91
- roomDetailViewState.isWebRTCCallOptionAvailable () ||
91
+ roomDetailViewState.isCallOptionAvailable () ||
92
92
! roomDetailViewState.isAllowedToManageWidgets ||
93
93
roomDetailViewState.jitsiState.widgetId == null ) {
94
94
State .Unmount
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ data class RoomDetailViewState(
87
87
rootThreadEventId = args.threadTimelineArgs?.rootThreadEventId
88
88
)
89
89
90
- fun isWebRTCCallOptionAvailable () = asyncRoomSummary.invoke()?.isDirect ? : true
90
+ fun isCallOptionAvailable () = asyncRoomSummary.invoke()?.isDirect ? : true
91
91
92
92
fun isSearchAvailable () = asyncRoomSummary()?.isEncrypted == false
93
93
Original file line number Diff line number Diff line change @@ -714,10 +714,10 @@ class TimelineViewModel @AssistedInject constructor(
714
714
R .id.timeline_setting -> true
715
715
R .id.invite -> state.canInvite
716
716
R .id.open_matrix_apps -> true
717
- R .id.voice_call -> state.isWebRTCCallOptionAvailable ()
718
- R .id.video_call -> state.isWebRTCCallOptionAvailable () || state.jitsiState.confId == null || state.jitsiState.hasJoined
717
+ R .id.voice_call -> state.isCallOptionAvailable ()
718
+ R .id.video_call -> state.isCallOptionAvailable () || state.jitsiState.confId == null || state.jitsiState.hasJoined
719
719
// Show Join conference button only if there is an active conf id not joined. Otherwise fallback to default video disabled. ^
720
- R .id.join_conference -> ! state.isWebRTCCallOptionAvailable () && state.jitsiState.confId != null && ! state.jitsiState.hasJoined
720
+ R .id.join_conference -> ! state.isCallOptionAvailable () && state.jitsiState.confId != null && ! state.jitsiState.hasJoined
721
721
R .id.search -> state.isSearchAvailable()
722
722
R .id.menu_timeline_thread_list -> vectorPreferences.areThreadMessagesEnabled()
723
723
R .id.dev_tools -> vectorPreferences.developerMode()
Original file line number Diff line number Diff line change 25
25
android : title =" @string/action_video_call"
26
26
android : visible =" false"
27
27
app : iconTint =" ?colorPrimary"
28
- app : showAsAction =" always "
28
+ app : showAsAction =" ifRoom "
29
29
tools : visible =" true" />
30
30
31
31
<item
34
34
android : title =" @string/call"
35
35
android : visible =" false"
36
36
app : iconTint =" ?colorPrimary"
37
- app : showAsAction =" always "
37
+ app : showAsAction =" ifRoom "
38
38
tools : visible =" true" />
39
39
40
40
<item
43
43
android : visible =" false"
44
44
app : iconTint =" ?colorPrimary"
45
45
app : actionLayout =" @layout/view_thread_notification_badge"
46
- app : showAsAction =" always "
46
+ app : showAsAction =" ifRoom "
47
47
tools : visible =" true" />
48
48
49
49
<item android : id =" @+id/join_conference"
You can’t perform that action at this time.
0 commit comments