fix: self leave group is treated as QUIT instead of UPDATE

This commit is contained in:
Jubb 2021-02-15 17:41:10 +11:00
parent a63fce4ca6
commit 9ccfb4702d

View File

@ -638,7 +638,7 @@ object ClosedGroupsProtocolV2 {
}
if (userPublicKey == senderPublicKey) {
val threadID = DatabaseFactory.getLokiThreadDatabase(context).getThreadID(groupID)
insertOutgoingInfoMessage(context, groupID, GroupContext.Type.UPDATE, name, members, admins, threadID, sentTimestamp)
insertOutgoingInfoMessage(context, groupID, GroupContext.Type.QUIT, name, members, admins, threadID, sentTimestamp)
} else {
insertIncomingInfoMessage(context, senderPublicKey, groupID, GroupContext.Type.UPDATE, SignalServiceGroup.Type.UPDATE, name, members, admins)
}