Show "xxx is invited" upon group creation (#899)

pull/1709/head
SessionHero01 3 months ago committed by GitHub
parent 7b1a25d0ef
commit ab2bc2ff2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -190,7 +190,7 @@ class GroupManagerV2Impl @Inject constructor(
) )
// Also send a group update message // Also send a group update message
sendGroupUpdateForAddingMembers(groupId, adminKey, members, insertLocally = false) sendGroupUpdateForAddingMembers(groupId, adminKey, members)
recipient recipient
} catch (e: Exception) { } catch (e: Exception) {
@ -301,7 +301,7 @@ class GroupManagerV2Impl @Inject constructor(
) )
// Send a group update message to the group telling members someone has been invited // Send a group update message to the group telling members someone has been invited
sendGroupUpdateForAddingMembers(group, adminKey, newMembers, insertLocally = true) sendGroupUpdateForAddingMembers(group, adminKey, newMembers)
} }
/** /**
@ -311,7 +311,6 @@ class GroupManagerV2Impl @Inject constructor(
group: AccountId, group: AccountId,
adminKey: ByteArray, adminKey: ByteArray,
newMembers: Collection<AccountId>, newMembers: Collection<AccountId>,
insertLocally: Boolean
) { ) {
val timestamp = clock.currentTimeMills() val timestamp = clock.currentTimeMills()
val signature = SodiumUtilities.sign( val signature = SodiumUtilities.sign(
@ -331,9 +330,7 @@ class GroupManagerV2Impl @Inject constructor(
).apply { this.sentTimestamp = timestamp } ).apply { this.sentTimestamp = timestamp }
MessageSender.send(updatedMessage, Destination.ClosedGroup(group.hexString), false) MessageSender.send(updatedMessage, Destination.ClosedGroup(group.hexString), false)
if (insertLocally) { storage.insertGroupInfoChange(updatedMessage, group)
storage.insertGroupInfoChange(updatedMessage, group)
}
} }
override suspend fun removeMembers( override suspend fun removeMembers(

Loading…
Cancel
Save