mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-27 19:38:53 +03:00
lint
This commit is contained in:
parent
dbfa5e1fd5
commit
ff0c98e8fa
1 changed files with 2 additions and 2 deletions
|
@ -158,8 +158,8 @@ val upHandler = object: MessagingReceiverHandler {
|
|||
Timber.i("onNewEndpoint: adding $endpoint")
|
||||
if (vectorPreferences.areNotificationEnabledForDevice() && activeSessionHolder.hasActiveSession()) {
|
||||
val gateway = UPHelper.customOrDefaultGateway(context, endpoint)
|
||||
if (UPHelper.getUpEndpoint(context) != endpoint ||
|
||||
UPHelper.getPushGateway(context) != gateway) {
|
||||
if (UPHelper.getUpEndpoint(context) != endpoint
|
||||
|| UPHelper.getPushGateway(context) != gateway) {
|
||||
UPHelper.storePushGateway(context, gateway)
|
||||
UPHelper.storeUpEndpoint(context, endpoint)
|
||||
pusherManager.registerPusher(context, endpoint, gateway)
|
||||
|
|
Loading…
Reference in a new issue