소스 검색

Fix the check if user joined on another device

Signed-off-by: Joas Schilling <coding@schilljs.com>
Joas Schilling 4 년 전
부모
커밋
b9bf035bbc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/gplay/java/com/nextcloud/talk/services/firebase/MagicFirebaseMessagingService.kt

+ 1 - 1
app/src/gplay/java/com/nextcloud/talk/services/firebase/MagicFirebaseMessagingService.kt

@@ -326,7 +326,7 @@ class MagicFirebaseMessagingService : FirebaseMessagingService() {
                 override fun onNext(participantsOverall: ParticipantsOverall) {
                     val participantList: List<Participant> = participantsOverall.ocs.data
                     hasParticipantsInCall = participantList.isNotEmpty()
-                    if (!hasParticipantsInCall) {
+                    if (hasParticipantsInCall) {
                         for (participant in participantList) {
                             if (participant.userId == signatureVerification.userEntity.userId) {
                                 inCallOnDifferentDevice = true