Skip to content

Commit

Permalink
check if acs update is for the current user
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed May 14, 2023
1 parent c467a6d commit 1382317
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tinodesdk/src/main/java/co/tinode/tinodesdk/MeTopic.java
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ protected void routePres(MsgServerPres pres) {
break;

case ACS: // access mode changed
if (topic.updateAccessMode(pres.dacs) && mStore != null) {
if (pres.tgt == null && topic.updateAccessMode(pres.dacs) && mStore != null) {
// tgt is null means permissions are for the current user.
mStore.topicUpdate(topic);
}
break;
Expand Down

0 comments on commit 1382317

Please sign in to comment.