mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-12 10:32:36 +00:00
Fix bugs
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
73dcfff367
commit
acdf936acb
@ -940,6 +940,9 @@ public class CallActivity extends AppCompatActivity {
|
|||||||
ApplicationWideCurrentRoomHolder.getInstance().setCurrentRoomId(roomId);
|
ApplicationWideCurrentRoomHolder.getInstance().setCurrentRoomId(roomId);
|
||||||
ApplicationWideCurrentRoomHolder.getInstance().setInCall(true);
|
ApplicationWideCurrentRoomHolder.getInstance().setInCall(true);
|
||||||
ApplicationWideCurrentRoomHolder.getInstance().setUserInRoom(userEntity);
|
ApplicationWideCurrentRoomHolder.getInstance().setUserInRoom(userEntity);
|
||||||
|
} else {
|
||||||
|
ApplicationWideCurrentRoomHolder.getInstance().setInCall(true);
|
||||||
|
}
|
||||||
|
|
||||||
ncApi.pingCall(credentials, ApiUtils.getUrlForCallPing(baseUrl, roomToken))
|
ncApi.pingCall(credentials, ApiUtils.getUrlForCallPing(baseUrl, roomToken))
|
||||||
.subscribeOn(Schedulers.newThread())
|
.subscribeOn(Schedulers.newThread())
|
||||||
@ -968,9 +971,6 @@ public class CallActivity extends AppCompatActivity {
|
|||||||
dispose(pingDisposable);
|
dispose(pingDisposable);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
ApplicationWideCurrentRoomHolder.getInstance().setInCall(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Start pulling signaling messages
|
// Start pulling signaling messages
|
||||||
String urlToken = null;
|
String urlToken = null;
|
||||||
|
@ -110,7 +110,7 @@ public class NotificationJob extends Job {
|
|||||||
.getInstance().getUserInRoom());
|
.getInstance().getUserInRoom());
|
||||||
|
|
||||||
boolean shouldShowNotification = decryptedPushMessage.getApp().equals("spreed") &&
|
boolean shouldShowNotification = decryptedPushMessage.getApp().equals("spreed") &&
|
||||||
!(isInTheSameRoomAsNotification && !decryptedPushMessage.getType().equals("call"));
|
(!isInTheSameRoomAsNotification || decryptedPushMessage.getType().equals("call"));
|
||||||
|
|
||||||
if (shouldShowNotification) {
|
if (shouldShowNotification) {
|
||||||
int smallIcon;
|
int smallIcon;
|
||||||
|
Loading…
Reference in New Issue
Block a user