mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
Merge pull request #360 from RyanRory/ssk-closed-group-leaving-message
Fix Group Leaving Copy
This commit is contained in:
commit
91a62a7449
@ -208,8 +208,12 @@ object ClosedGroupsProtocol {
|
||||
groupDB.updateMembers(groupID, members.map { Address.fromSerialized(it) })
|
||||
}
|
||||
// Notify the user
|
||||
var infoType = GroupContext.Type.UPDATE
|
||||
if (isUserLeaving) {
|
||||
infoType = GroupContext.Type.QUIT
|
||||
}
|
||||
val threadID = DatabaseFactory.getThreadDatabase(context).getThreadIdFor(Recipient.from(context, Address.fromSerialized(groupID), false))
|
||||
insertOutgoingInfoMessage(context, groupID, GroupContext.Type.UPDATE, name, members, admins, threadID)
|
||||
insertOutgoingInfoMessage(context, groupID, infoType, name, members, admins, threadID)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
|
Loading…
Reference in New Issue
Block a user