diff options
author | Tim Krüger <t@timkrueger.me> | 2022-09-29 10:31:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 10:31:40 +0300 |
commit | 309ba901975b600e85d1d83027125ee573731c77 (patch) | |
tree | 8ef30cf0d004d317c4342ca24976d49b0fb79c46 /app/src | |
parent | 4a049d9d03e76df4ec2eaf11d66f2406cbde704a (diff) | |
parent | d09c5d486586cf068897ca64c9ca9af08906ed75 (diff) |
Merge pull request #2438 from nextcloud/bugfix/noid/fixPermissionsForCallNotificationActivity
set participantPermissions in CallNotificationActivity
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); |