mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Handle unexpected user status emoji values gracefully.
This commit is contained in:
@@ -124,7 +124,7 @@ nonisolated extension UserStatus {
|
||||
nonisolated extension UserStatus.Raw {
|
||||
init(rustStatus: MatrixRustSDK.UserStatus) {
|
||||
text = rustStatus.text
|
||||
emoji = Character(rustStatus.emoji)
|
||||
emoji = rustStatus.emoji.first ?? .space
|
||||
}
|
||||
|
||||
// periphery:ignore - might be useful to have
|
||||
|
||||
Reference in New Issue
Block a user