update disappearing messages type localized name logic

pull/1023/head
Ryan ZHAO 7 months ago
parent 5d03a8057e
commit fcc5a36883

@ -151,7 +151,7 @@ public extension DisappearingMessagesConfiguration {
return "disappearingMessagesSetYou"
.put(key: "time", value: floor(durationSeconds).formatted(format: .long))
.put(key: "disappearing_messages_type", value: (type?.localizedName ?? ""))
.put(key: "disappearing_messages_type", value: (type ?? .unknown).localizedName)
.localized()
}
@ -164,7 +164,7 @@ public extension DisappearingMessagesConfiguration {
return "disappearingMessagesSet"
.put(key: "name", value: senderName)
.put(key: "time", value: floor(durationSeconds).formatted(format: .long))
.put(key: "disappearing_messages_type", value: (type?.localizedName ?? ""))
.put(key: "disappearing_messages_type", value: (type ?? .unknown).localizedName)
.localized()
}
}

Loading…
Cancel
Save