Merge pull request #473 from GetStream/hotfix/threadReply

fix: thread reply
This commit is contained in:
Salvatore Giordano
2021-06-14 17:03:45 +02:00
committed by GitHub
@@ -256,7 +256,10 @@ class Channel {
String messageId, String messageId,
Iterable<String> attachmentIds, Iterable<String> attachmentIds,
) { ) {
final message = state!.messages.firstWhereOrNull( final message = [
...state!.messages,
...state!.threads.values.expand((messages) => messages),
].firstWhereOrNull(
(it) => it.id == messageId, (it) => it.id == messageId,
); );