mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +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:
@@ -442,7 +442,7 @@ final nonisolated class AppSettings: @unchecked Sendable {
|
||||
nonisolated(unsafe) var roomThreadListEnabled: Bool
|
||||
|
||||
@UserPreference
|
||||
nonisolated(unsafe) var globalSearchEnabled: Bool
|
||||
nonisolated(unsafe) var globalSearchEnabled: Bool
|
||||
|
||||
@UserPreference
|
||||
nonisolated(unsafe) var focusEventOnNotificationTap: Bool
|
||||
|
||||
@@ -3557,10 +3557,6 @@ internal nonisolated enum L10n {
|
||||
}
|
||||
/// On the map
|
||||
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.
|
||||
internal static func screenTimelineItemMenuSendFailureChangedIdentity(_ p1: Any) -> String {
|
||||
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 {
|
||||
"""
|
||||
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