File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ void main() {
25
25
}
26
26
27
27
DmOutboxMessage dmOutboxMessage ({required List <int > allRecipientIds}) {
28
+ final senderUserId = allRecipientIds[0 ];
28
29
return OutboxMessage .fromConversation (
29
- DmConversation (allRecipientIds: allRecipientIds),
30
+ DmConversation (allRecipientIds: allRecipientIds.. sort () ),
30
31
localMessageId: nextLocalMessageId++ ,
31
- selfUserId: allRecipientIds[ 0 ] ,
32
+ selfUserId: senderUserId ,
32
33
timestamp: 123456789 ,
33
34
contentMarkdown: 'content' ) as DmOutboxMessage ;
34
35
}
@@ -228,7 +229,7 @@ void main() {
228
229
check (narrow.containsMessage (
229
230
dmOutboxMessage (allRecipientIds: [2 , 3 ]))).isFalse ();
230
231
check (narrow.containsMessage (
231
- dmOutboxMessage (allRecipientIds: [1 , 2 ]))).isTrue ();
232
+ dmOutboxMessage (allRecipientIds: [2 , 1 ]))).isTrue ();
232
233
});
233
234
});
234
235
You can’t perform that action at this time.
0 commit comments