mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +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 {
|
nonisolated extension UserStatus.Raw {
|
||||||
init(rustStatus: MatrixRustSDK.UserStatus) {
|
init(rustStatus: MatrixRustSDK.UserStatus) {
|
||||||
text = rustStatus.text
|
text = rustStatus.text
|
||||||
emoji = Character(rustStatus.emoji)
|
emoji = rustStatus.emoji.first ?? .space
|
||||||
}
|
}
|
||||||
|
|
||||||
// periphery:ignore - might be useful to have
|
// periphery:ignore - might be useful to have
|
||||||
|
|||||||
Reference in New Issue
Block a user