Periphery cleanup (#5893)

This commit is contained in:
Mauro
2026-07-20 11:16:11 +02:00
committed by GitHub
parent 175aca596e
commit 9093631f8b
275 changed files with 381 additions and 2268 deletions
@@ -16,6 +16,8 @@ nonisolated struct RoomInfoProxy: RoomInfoProxyProtocol {
roomInfo.id
}
// periphery:ignore - might be useful to have
var creators: [String] {
roomInfo.creators ?? []
}
@@ -24,6 +26,8 @@ nonisolated struct RoomInfoProxy: RoomInfoProxyProtocol {
roomInfo.displayName
}
// periphery:ignore - might be useful to have
var rawName: String? {
roomInfo.rawName
}
@@ -78,6 +82,8 @@ nonisolated struct RoomInfoProxy: RoomInfoProxyProtocol {
roomInfo.membership
}
// periphery:ignore - might be useful to have
var inviter: RoomMemberProxyProtocol? {
roomInfo.inviter.map(RoomMemberProxy.init)
}
@@ -90,6 +96,8 @@ nonisolated struct RoomInfoProxy: RoomInfoProxyProtocol {
Int(roomInfo.activeMembersCount)
}
// periphery:ignore - might be useful to have
var invitedMembersCount: Int {
Int(roomInfo.invitedMembersCount)
}
@@ -98,14 +106,20 @@ nonisolated struct RoomInfoProxy: RoomInfoProxyProtocol {
Int(roomInfo.joinedMembersCount)
}
// periphery:ignore - might be useful to have
var highlightCount: Int {
Int(roomInfo.highlightCount)
}
// periphery:ignore - might be useful to have
var notificationCount: Int {
Int(roomInfo.notificationCount)
}
// periphery:ignore - might be useful to have
var cachedUserDefinedNotificationMode: RoomNotificationMode? {
roomInfo.cachedUserDefinedNotificationMode
}
@@ -129,18 +143,26 @@ nonisolated struct RoomInfoProxy: RoomInfoProxyProtocol {
roomInfo.activeRoomCallParticipants
}
// periphery:ignore - might be useful to have
var isMarkedUnread: Bool {
roomInfo.isMarkedUnread
}
// periphery:ignore - might be useful to have
var unreadMessagesCount: UInt {
UInt(roomInfo.numUnreadMessages)
}
// periphery:ignore - might be useful to have
var unreadNotificationsCount: UInt {
UInt(roomInfo.numUnreadNotifications)
}
// periphery:ignore - might be useful to have
var unreadMentionsCount: UInt {
UInt(roomInfo.numUnreadMentions)
}