Fix room list heroes label format

- change from `Alice, Bob and Charlie` to `Alice, Bob, Charlie and 42 others` (when applicable)
This commit is contained in:
Stefan Ceriu
2025-05-12 09:39:53 +03:00
parent 876618d557
commit e1984ccdc0
42 changed files with 569 additions and 534 deletions
@@ -78,6 +78,7 @@ extension RoomSummary {
isDirect: false,
avatarURL: nil,
heroes: [],
activeMembersCount: 0,
lastMessage: AttributedString("I do not wish to take the trouble to understand mysticism"),
lastMessageDate: .mock,
unreadMessagesCount: 0,
@@ -101,6 +102,7 @@ extension Array where Element == RoomSummary {
isDirect: false,
avatarURL: nil,
heroes: [],
activeMembersCount: 0,
lastMessage: AttributedString("I do not wish to take the trouble to understand mysticism"),
lastMessageDate: .mock,
unreadMessagesCount: 0,
@@ -119,6 +121,7 @@ extension Array where Element == RoomSummary {
isDirect: false,
avatarURL: .mockMXCAvatar,
heroes: [],
activeMembersCount: 0,
lastMessage: AttributedString("How do you see the Emperor then? You think he keeps office hours?"),
lastMessageDate: .mock,
unreadMessagesCount: 2,
@@ -137,6 +140,7 @@ extension Array where Element == RoomSummary {
isDirect: false,
avatarURL: nil,
heroes: [],
activeMembersCount: 0,
lastMessage: try? AttributedString(markdown: "He certainly seemed no *mental genius* to me"),
lastMessageDate: .mock,
unreadMessagesCount: 3,
@@ -155,6 +159,7 @@ extension Array where Element == RoomSummary {
isDirect: false,
avatarURL: nil,
heroes: [],
activeMembersCount: 0,
lastMessage: AttributedString("There's an archaic measure of time that's called the month"),
lastMessageDate: .mock,
unreadMessagesCount: 2,
@@ -173,6 +178,7 @@ extension Array where Element == RoomSummary {
isDirect: true,
avatarURL: nil,
heroes: [],
activeMembersCount: 0,
lastMessage: AttributedString("Clearly, if Earth is powerful enough to do that, it might also be capable of adjusting minds in order to force belief in its radioactivity"),
lastMessageDate: .mock,
unreadMessagesCount: 1,
@@ -191,6 +197,7 @@ extension Array where Element == RoomSummary {
isDirect: true,
avatarURL: nil,
heroes: [],
activeMembersCount: 0,
lastMessage: AttributedString("Are you groping for the word 'paranoia'?"),
lastMessageDate: .mock,
unreadMessagesCount: 6,
@@ -209,6 +216,7 @@ extension Array where Element == RoomSummary {
isDirect: false,
avatarURL: nil,
heroes: [],
activeMembersCount: 0,
lastMessage: nil,
lastMessageDate: nil,
unreadMessagesCount: 0,
@@ -260,6 +268,7 @@ extension Array where Element == RoomSummary {
isDirect: false,
avatarURL: .mockMXCAvatar,
heroes: [],
activeMembersCount: 0,
lastMessage: nil,
lastMessageDate: nil,
unreadMessagesCount: 0,
@@ -278,6 +287,7 @@ extension Array where Element == RoomSummary {
isDirect: true,
avatarURL: nil,
heroes: [],
activeMembersCount: 0,
lastMessage: nil,
lastMessageDate: nil,
unreadMessagesCount: 0,