File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/stream_chat_persistence/lib/src/dao Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ class MessageDao extends DatabaseAccessor<DriftChatDatabase>
5959 _ => null ,
6060 };
6161
62- final draft = await switch (( fetchDraft, msgEntity.parentId) ) {
63- ( true , final parentId ? ) => _db.draftMessageDao.getDraftMessageByCid (
62+ final draft = await switch (fetchDraft) {
63+ true => _db.draftMessageDao.getDraftMessageByCid (
6464 msgEntity.channelCid,
65- parentId: parentId ,
65+ parentId: msgEntity.id ,
6666 ),
6767 _ => null ,
6868 };
Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ class PinnedMessageDao extends DatabaseAccessor<DriftChatDatabase>
6060 _ => null ,
6161 };
6262
63- final draft = await switch (( fetchDraft, msgEntity.parentId) ) {
64- ( true , final parentId ? ) => _db.draftMessageDao.getDraftMessageByCid (
63+ final draft = await switch (fetchDraft) {
64+ true => _db.draftMessageDao.getDraftMessageByCid (
6565 msgEntity.channelCid,
66- parentId: parentId ,
66+ parentId: msgEntity.id ,
6767 ),
6868 _ => null ,
6969 };
You can’t perform that action at this time.
0 commit comments