We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc559a commit e210f44Copy full SHA for e210f44
Sources/StreamChatSwiftUI/ChatChannel/ChatChannelViewModel.swift
@@ -269,7 +269,11 @@ extension ChatMessage: Identifiable {
269
270
var reactionScoresId: String {
271
var output = ""
272
- for (key, score) in reactionScores {
+ let sorted = reactionScores.keys.sorted { type1, type2 in
273
+ type1.id > type2.id
274
+ }
275
+ for key in sorted {
276
+ let score = reactionScores[key] ?? 0
277
output += "\(key.rawValue)\(score)"
278
}
279
return output
0 commit comments