mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 12:28:29 +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:
@@ -3557,10 +3557,6 @@ internal nonisolated enum L10n {
|
|||||||
}
|
}
|
||||||
/// On the map
|
/// On the map
|
||||||
internal static var screenStaticLocationSheetTitle: String { return L10n.tr("Localizable", "screen_static_location_sheet_title") }
|
internal static var screenStaticLocationSheetTitle: String { return L10n.tr("Localizable", "screen_static_location_sheet_title") }
|
||||||
/// Plural format key: "%#@COUNT@"
|
|
||||||
internal static func screenTimelineActiveCallExtraJoinedCount(_ p1: Int) -> String {
|
|
||||||
return L10n.tr("Localizable", "screen_timeline_active_call_extra_joined_count", p1)
|
|
||||||
}
|
|
||||||
/// Message not sent because %1$@’s verified digital identity was reset.
|
/// Message not sent because %1$@’s verified digital identity was reset.
|
||||||
internal static func screenTimelineItemMenuSendFailureChangedIdentity(_ p1: Any) -> String {
|
internal static func screenTimelineItemMenuSendFailureChangedIdentity(_ p1: Any) -> String {
|
||||||
return L10n.tr("Localizable", "screen_timeline_item_menu_send_failure_changed_identity", String(describing: p1))
|
return L10n.tr("Localizable", "screen_timeline_item_menu_send_failure_changed_identity", String(describing: p1))
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ nonisolated struct RoomSummary {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension RoomSummary: CustomStringConvertible {
|
nonisolated extension RoomSummary: CustomStringConvertible {
|
||||||
var description: String {
|
var description: String {
|
||||||
"""
|
"""
|
||||||
RoomSummary: - id: \(id) \
|
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
|
/// 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.
|
/// down on logout). Keeps the diff indices aligned with the SDK instead of crashing.
|
||||||
nonisolated static func placeholder(room: Room) -> RoomSummary {
|
nonisolated static func placeholder(room: Room) -> RoomSummary {
|
||||||
|
|||||||
Reference in New Issue
Block a user