Skip to content

Commit

Permalink
Fix /websockets/chat/messages so it disregards group-membership chang…
Browse files Browse the repository at this point in the history
…e notifications
  • Loading branch information
catbref committed Jun 29, 2020
1 parent 3c139f3 commit 3a77519
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ public void onWebSocketMessage(Session session, String message) {
}

private void onNotify(Session session, ChatTransactionData chatTransactionData, int txGroupId) {
if (chatTransactionData == null)
// There has been a group-membership change, but we're not interested
return;

// We only want group-based messages with our txGroupId
if (chatTransactionData.getRecipient() != null || chatTransactionData.getTxGroupId() != txGroupId)
return;
Expand Down

0 comments on commit 3a77519

Please sign in to comment.