diff options
author | Marcel Hibbe <dev@mhibbe.de> | 2022-09-28 16:45:05 +0300 |
---|---|---|
committer | Marcel Hibbe <dev@mhibbe.de> | 2022-09-28 16:45:05 +0300 |
commit | d09c5d486586cf068897ca64c9ca9af08906ed75 (patch) | |
tree | 3fa1efa95a21b4c27cf255339238bfa38815de27 /app/src | |
parent | e26a7a7bebb769212b05aec9f7f230250a21cfa6 (diff) |
set participantPermissions in CallNotificationActivitybugfix/noid/fixPermissionsForCallNotificationActivity
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java b/app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java index f0d3c6303..66cbd6c0a 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java +++ b/app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java @@ -57,6 +57,7 @@ import com.nextcloud.talk.utils.ApiUtils; import com.nextcloud.talk.utils.DisplayUtils; import com.nextcloud.talk.utils.DoNotDisturbUtils; import com.nextcloud.talk.utils.NotificationUtils; +import com.nextcloud.talk.utils.ParticipantPermissions; import com.nextcloud.talk.utils.bundle.BundleKeys; import com.nextcloud.talk.utils.database.user.CapabilitiesUtilNew; import com.nextcloud.talk.utils.preferences.AppPreferences; @@ -205,6 +206,14 @@ public class CallNotificationActivity extends CallBaseActivity { originalBundle.putString(BundleKeys.KEY_ROOM_TOKEN, currentConversation.getToken()); originalBundle.putString(BundleKeys.KEY_CONVERSATION_NAME, currentConversation.getDisplayName()); + ParticipantPermissions participantPermission = new ParticipantPermissions(userBeingCalled, currentConversation); + originalBundle.putBoolean( + BundleKeys.KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_AUDIO, + participantPermission.canPublishAudio()); + originalBundle.putBoolean( + BundleKeys.KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_VIDEO, + participantPermission.canPublishVideo()); + Intent intent = new Intent(this, CallActivity.class); intent.putExtras(originalBundle); startActivity(intent); |