Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Apr 24, 2024
1 parent 7f3d6f9 commit e7e18ed
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2232,14 +2232,10 @@ public void onMessageEvent(SyncEventFinished event) {

@Subscribe(threadMode = ThreadMode.BACKGROUND)
public void onMessageEvent(TokenPushEvent event) {
try {
if (!preferences.isKeysReInitEnabled()) {
PushUtils.reinitKeys(getUserAccountManager());
} else {
PushUtils.pushRegistrationToServer(getUserAccountManager(), preferences.getPushToken());
}
} catch (Exception e) {
Log_OC.d(TAG,"Error caught at onMessageEvent: " + e);
if (!preferences.isKeysReInitEnabled()) {
PushUtils.reinitKeys(getUserAccountManager());
} else {
PushUtils.pushRegistrationToServer(getUserAccountManager(), preferences.getPushToken());
}
}

Expand Down

0 comments on commit e7e18ed

Please sign in to comment.