mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-22 20:26:50 +00:00
Fix /websockets/chat/messages so it disregards group-membership change notifications
This commit is contained in:
@@ -94,6 +94,10 @@ public class ChatMessagesWebSocket extends WebSocketServlet implements ApiWebSoc
|
||||
}
|
||||
|
||||
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;
|
||||
|
Reference in New Issue
Block a user