Skip to content

Commit d936011

Browse files
committed
message test: Use hasAlertWord flag, where starred is inappropriate
UpdateMessageEvent has a `flags` field, but the API doc is pretty clear that it's just meant to communicate changes in the mentioned and alert-words flags: https://zulip.com/api/get-events#update_message The separate event, UpdateMessageFlagsEvent, is what updates the starred flag.
1 parent 6ad5b05 commit d936011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/model/message_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ void main() {
14401440
final originalMessage = eg.streamMessage(
14411441
content: "<p>Hello, world</p>");
14421442
final updateEvent = eg.updateMessageEditEvent(originalMessage,
1443-
flags: [MessageFlag.starred],
1443+
flags: [MessageFlag.hasAlertWord],
14441444
renderedContent: "<p>Hello, edited</p>",
14451445
editTimestamp: 99999,
14461446
isMeMessage: true,

0 commit comments

Comments
 (0)