mirror of
https://github.com/oxen-io/session-android.git
synced 2025-03-23 04:40:52 +00:00
Simplify expression
This commit is contained in:
parent
91a62a7449
commit
cd177ee61e
@ -208,10 +208,7 @@ 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 infoType = if (isUserLeaving) GroupContext.Type.QUIT else GroupContext.Type.UPDATE
|
||||
val threadID = DatabaseFactory.getThreadDatabase(context).getThreadIdFor(Recipient.from(context, Address.fromSerialized(groupID), false))
|
||||
insertOutgoingInfoMessage(context, groupID, infoType, name, members, admins, threadID)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user