Skip to content

Commit

Permalink
fix handling of subscription pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Jul 2, 2022
1 parent 4f7459a commit cb4a0db
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tinodesdk/src/main/java/co/tinode/tinodesdk/Tinode.java
Original file line number Diff line number Diff line change
Expand Up @@ -812,9 +812,6 @@ public void oobNotification(Map<String, String> data, String authToken) {
if (disconnect) {
disconnect(true);
}
} else if (new Acs(data.get("modeGiven"), data.get("modeWant")).isNone()) {
// Topic deleted.
topic.expunge(false);
}
break;
default:
Expand Down Expand Up @@ -863,7 +860,7 @@ public String getMyId() {
* @param uid ID of the user to check.
* @return true if the ID belong to the current user, false otherwise.
*/
public boolean isMe(String uid) {
public boolean isMe(@Nullable String uid) {
return mMyUid != null && mMyUid.equals(uid);
}

Expand Down

0 comments on commit cb4a0db

Please sign in to comment.