Fixed issue where new closed groups would display a timestamp instead of the 'groupNoMessages' text

This commit is contained in:
Al Lansley
2024-08-15 12:13:30 +10:00
parent 51ef0ec81c
commit 90d7064c18
3 changed files with 17 additions and 3 deletions

View File

@@ -70,7 +70,10 @@ fun MessageSender.create(
// Notify the user
val threadID = storage.getOrCreateThreadIdFor(Address.fromSerialized(groupID))
storage.insertOutgoingInfoMessage(context, groupID, SignalServiceGroup.Type.CREATION, name, members, admins, threadID, sentTime)
// ACL Note: Commenting out this line prevents the timestamp of room creation being added to a new closed group,
// which in turn allows us to show the `groupNoMessages` control message text.
//storage.insertOutgoingInfoMessage(context, groupID, SignalServiceGroup.Type.CREATION, name, members, admins, threadID, sentTime)
val ourPubKey = storage.getUserPublicKey()
for (member in members) {