Simplify ClosedGroupControlMessage#fromProto

This commit is contained in:
Andrew
2024-02-21 01:17:32 +10:30
parent 39df560f0c
commit 3cd5ca4a6d
2 changed files with 32 additions and 48 deletions

View File

@@ -239,8 +239,7 @@ object MockDataGenerator {
// Add the group created message
if (userSessionId == adminUserId) {
storage.insertOutgoingInfoMessage(context, groupId, SignalServiceGroup.Type.CREATION, groupName, members, listOf(adminUserId), threadId, (timestampNow - (numMessages * 5000)))
}
else {
} else {
storage.insertIncomingInfoMessage(context, adminUserId, groupId, SignalServiceGroup.Type.CREATION, groupName, members, listOf(adminUserId), (timestampNow - (numMessages * 5000)))
}