mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Mark RoomSummary extensions as nonisolated
The RoomSummary struct is nonisolated, so its CustomStringConvertible and helper extensions should be too.
This commit is contained in:
@@ -80,7 +80,7 @@ nonisolated struct RoomSummary {
|
||||
}
|
||||
}
|
||||
|
||||
extension RoomSummary: CustomStringConvertible {
|
||||
nonisolated extension RoomSummary: CustomStringConvertible {
|
||||
var description: String {
|
||||
"""
|
||||
RoomSummary: - id: \(id) \
|
||||
@@ -118,7 +118,7 @@ extension RoomSummary: CustomStringConvertible {
|
||||
}
|
||||
}
|
||||
|
||||
extension RoomSummary {
|
||||
nonisolated extension RoomSummary {
|
||||
/// An empty summary used when the room info is momentarily unavailable (e.g. while the client tears
|
||||
/// down on logout). Keeps the diff indices aligned with the SDK instead of crashing.
|
||||
nonisolated static func placeholder(room: Room) -> RoomSummary {
|
||||
|
||||
Reference in New Issue
Block a user