Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-05-29 13:25:38 +02:00
parent 73dcfff367
commit acdf936acb
2 changed files with 30 additions and 30 deletions

View file

@ -940,6 +940,9 @@ public class CallActivity extends AppCompatActivity {
ApplicationWideCurrentRoomHolder.getInstance().setCurrentRoomId(roomId);
ApplicationWideCurrentRoomHolder.getInstance().setInCall(true);
ApplicationWideCurrentRoomHolder.getInstance().setUserInRoom(userEntity);
} else {
ApplicationWideCurrentRoomHolder.getInstance().setInCall(true);
}
ncApi.pingCall(credentials, ApiUtils.getUrlForCallPing(baseUrl, roomToken))
.subscribeOn(Schedulers.newThread())
@ -968,9 +971,6 @@ public class CallActivity extends AppCompatActivity {
dispose(pingDisposable);
}
});
} else {
ApplicationWideCurrentRoomHolder.getInstance().setInCall(true);
}
// Start pulling signaling messages
String urlToken = null;

View file

@ -110,7 +110,7 @@ public class NotificationJob extends Job {
.getInstance().getUserInRoom());
boolean shouldShowNotification = decryptedPushMessage.getApp().equals("spreed") &&
!(isInTheSameRoomAsNotification && !decryptedPushMessage.getType().equals("call"));
(!isInTheSameRoomAsNotification || decryptedPushMessage.getType().equals("call"));
if (shouldShowNotification) {
int smallIcon;