fix group control messages

pull/1023/head
Ryan ZHAO 7 months ago
parent 1b73f74fb7
commit b0ab84a86d

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

@ -364,8 +364,8 @@ public extension ClosedGroupControlMessage.Kind {
switch self { switch self {
case .nameChange(let name): case .nameChange(let name):
return "groupNameNew" return "groupNameNew"
.put(key: "group_name", value: name) .put(key: "group_name", value: name)
.localized() .localized()
case .membersAdded(let membersAsData): case .membersAdded(let membersAsData):
let memberIds: [String] = membersAsData.map { $0.toHexString() } let memberIds: [String] = membersAsData.map { $0.toHexString() }
@ -378,9 +378,9 @@ public extension ClosedGroupControlMessage.Kind {
Profile.truncated(id: $0, threadVariant: .legacyGroup) Profile.truncated(id: $0, threadVariant: .legacyGroup)
} }
return "groupMemberNew" return "legacyGroupMemberNew"
.put(key: "name", value: addedMemberNames.joined(separator: ", ")) .put(key: "name", value: addedMemberNames.joined(separator: ", "))
.localized() .localized()
case .membersRemoved(let membersAsData): case .membersRemoved(let membersAsData):
let userPublicKey: String = getUserHexEncodedPublicKey(db) let userPublicKey: String = getUserHexEncodedPublicKey(db)

Loading…
Cancel
Save