mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Revert "Fix bugs"
This reverts commit a88aaf5e66b9fba8d9ec5ba5f3e147fa041d570b.
This commit is contained in:
parent
acdf936acb
commit
0aa79f4940
@ -940,9 +940,6 @@ 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())
|
||||
@ -971,6 +968,9 @@ public class CallActivity extends AppCompatActivity {
|
||||
dispose(pingDisposable);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
ApplicationWideCurrentRoomHolder.getInstance().setInCall(true);
|
||||
}
|
||||
|
||||
// Start pulling signaling messages
|
||||
String urlToken = null;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user