mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 17:43:38 +00:00
modify leaving message
This commit is contained in:
parent
cd7197bfbd
commit
4bbc6fe044
@ -192,8 +192,12 @@ object ClosedGroupsProtocol {
|
|||||||
groupDB.updateMembers(groupID, members.map { Address.fromSerialized(it) })
|
groupDB.updateMembers(groupID, members.map { Address.fromSerialized(it) })
|
||||||
}
|
}
|
||||||
// Notify the user
|
// 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))
|
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
|
@JvmStatic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user