Merge pull request #473 from GetStream/hotfix/threadReply
fix: thread reply
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user