Mark RoomSummary extensions as nonisolated

The RoomSummary struct is nonisolated, so its CustomStringConvertible and
helper extensions should be too.
This commit is contained in:
Mauro Romito
2026-06-19 12:54:01 +02:00
committed by Mauro
parent 8a4e4d1903
commit f32b9eeb26
3 changed files with 3 additions and 7 deletions
-4
View File
@@ -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 {