Skip to content

Commit 4dd9094

Browse files
committed
example data [nfc]: Remove incorrect assertion for message move
This does not correctly catch the case when `origTopic='topic'`, and `newTopic=origStreamId=newStreamId=null`. Instead, remove it and rely on the assertions from UpdateMessageMoveData's constructor. Signed-off-by: Zixuan James Li <[email protected]>
1 parent 39dabbd commit 4dd9094

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/example_data.dart

-2
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,6 @@ UpdateMessageEvent _updateMessageMoveEvent(
675675
}) {
676676
_checkPositive(origStreamId, 'stream ID');
677677
_checkPositive(newStreamId, 'stream ID');
678-
assert(newTopic != origTopic
679-
|| (newStreamId != null && newStreamId != origStreamId));
680678
assert(messageIds.isNotEmpty);
681679
return UpdateMessageEvent(
682680
id: 0,

0 commit comments

Comments
 (0)