Skip to content

Commit cb4a0db

Browse files
committed
fix handling of subscription pushes
1 parent 4f7459a commit cb4a0db

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tinodesdk/src/main/java/co/tinode/tinodesdk/Tinode.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -812,9 +812,6 @@ public void oobNotification(Map<String, String> data, String authToken) {
812812
if (disconnect) {
813813
disconnect(true);
814814
}
815-
} else if (new Acs(data.get("modeGiven"), data.get("modeWant")).isNone()) {
816-
// Topic deleted.
817-
topic.expunge(false);
818815
}
819816
break;
820817
default:
@@ -863,7 +860,7 @@ public String getMyId() {
863860
* @param uid ID of the user to check.
864861
* @return true if the ID belong to the current user, false otherwise.
865862
*/
866-
public boolean isMe(String uid) {
863+
public boolean isMe(@Nullable String uid) {
867864
return mMyUid != null && mMyUid.equals(uid);
868865
}
869866

0 commit comments

Comments
 (0)