Skip to content

Commit 10fe0bc

Browse files
Update for renamed Swift Message.with method
See chat-swift commit 52fe739.
1 parent 5380026 commit 10fe0bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/docs/chat/rooms/message-reactions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ var messages = (await room.messages.history(options: .init(limit: 50))).items
434434
// subscribe to message reactions summary events
435435
room.messages.reactions.subscribe { event in
436436
if let idx = messages.lastIndex(where: { $0.serial == event.summary.messageSerial }) {
437-
messages[idx] = messages[idx].with(summaryEvent: event)
437+
messages[idx] = messages[idx].with(event)
438438
}
439439
}
440440
```

0 commit comments

Comments
 (0)