Skip to content

Commit

Permalink
fix for a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Nov 14, 2023
1 parent 977d69d commit 4c4ff83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinodesdk/src/main/java/co/tinode/tinodesdk/Topic.java
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ public int msgReadCount(int seq) {
Collection<Subscription<SP, SR>> subs = getSubscriptions();
if (subs != null) {
for (Subscription sub : subs) {
if (!sub.user.equals(me) && sub.read >= seq) {
if ((sub.user == null || !sub.user.equals(me)) && sub.read >= seq) {
count++;
}
}
Expand Down

0 comments on commit 4c4ff83

Please sign in to comment.