mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Update the SDK and handle API breaks. (#5871)
* Update the SDK and handle API breaks. * Rename sdkUserThing to rustUserThing for consistency. * Add user status ClientProxy methods. * Rename UserStatus.UserSet to UserStatus.Raw.
This commit is contained in:
@@ -44,18 +44,18 @@ extension UserProfile {
|
||||
|
||||
nonisolated extension UserStatus {
|
||||
static var mockCall: UserStatus {
|
||||
.init(userSet: nil, call: .init(startDate: nil))
|
||||
.init(raw: nil, call: .init(joinedDate: nil))
|
||||
}
|
||||
|
||||
static var mockFocussing: UserStatus {
|
||||
.init(userSet: .init(text: "Focussing", emoji: "🧑💻"), call: nil)
|
||||
.init(raw: .init(text: "Focussing", emoji: "🧑💻"), call: nil)
|
||||
}
|
||||
|
||||
static var mockHoliday: UserStatus {
|
||||
.init(userSet: .init(text: "Holiday", emoji: "🏝️"), call: nil)
|
||||
.init(raw: .init(text: "Holiday", emoji: "🏝️"), call: nil)
|
||||
}
|
||||
|
||||
static func mock(text: String, emoji: Character) -> UserStatus {
|
||||
.init(userSet: .init(text: text, emoji: emoji), call: nil)
|
||||
.init(raw: .init(text: text, emoji: emoji), call: nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user