From beb89d5b74b8a64ffcf9c7ce3d7507a9b83dac9e Mon Sep 17 00:00:00 2001 From: fanchao Date: Thu, 29 Aug 2024 17:00:37 +1000 Subject: [PATCH] Fix incorrect group member left message --- .../messaging/sending_receiving/ReceivedMessageHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt index aa492f895c..525d60e821 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt @@ -871,7 +871,7 @@ private fun MessageReceiver.handleClosedGroupMemberLeft(message: ClosedGroupCont // Notify the user if (!userLeft) { - storage.insertIncomingInfoMessage(context, senderPublicKey, groupID, SignalServiceGroup.Type.MEMBER_LEFT, name, members, admins, message.sentTimestamp!!) + storage.insertIncomingInfoMessage(context, senderPublicKey, groupID, SignalServiceGroup.Type.MEMBER_LEFT, name, listOf(senderPublicKey), admins, message.sentTimestamp!!) } }