@@ -306,7 +306,7 @@ void main() {
306
306
});
307
307
});
308
308
309
- group ('handleUpdateMessageEvent ' , () {
309
+ group ('UpdateMessageEvent ' , () {
310
310
test ('update a message' , () async {
311
311
final originalMessage = eg.streamMessage (
312
312
content: "<p>Hello, world</p>" );
@@ -326,7 +326,7 @@ void main() {
326
326
..flags.not ((it) => it.deepEquals (updateEvent.flags))
327
327
..isMeMessage.not ((it) => it.equals (updateEvent.isMeMessage! ));
328
328
329
- model. handleUpdateMessageEvent (updateEvent);
329
+ await store. handleEvent (updateEvent);
330
330
checkNotifiedOnce ();
331
331
check (model).messages.single
332
332
..identicalTo (message)
@@ -346,7 +346,7 @@ void main() {
346
346
await prepare ();
347
347
await prepareMessages (foundOldest: true , messages: [originalMessage]);
348
348
349
- model. handleUpdateMessageEvent (updateEvent);
349
+ await store. handleEvent (updateEvent);
350
350
checkNotNotified ();
351
351
check (model).messages.single
352
352
..content.equals (originalMessage.content)
@@ -368,7 +368,7 @@ void main() {
368
368
await prepareMessages (foundOldest: true , messages: [originalMessage]);
369
369
final message = model.messages.single;
370
370
371
- model. handleUpdateMessageEvent (updateEvent);
371
+ await store. handleEvent (updateEvent);
372
372
checkNotifiedOnce ();
373
373
check (model).messages.single
374
374
..identicalTo (message)
@@ -792,17 +792,17 @@ void main() {
792
792
await store.handleEvent (MessageEvent (id: 0 , message: streamMessage (14 )));
793
793
checkNotifiedOnce ();
794
794
795
- // Then test handleUpdateMessageEvent , where a header is and remains needed…
795
+ // Then test UpdateMessageEvent edits , where a header is and remains needed…
796
796
UpdateMessageEvent updateEvent (Message message) => eg.updateMessageEditEvent (
797
797
message, renderedContent: '${message .content }<p>edited</p>' ,
798
798
);
799
- model. handleUpdateMessageEvent (updateEvent (model.messages.first));
799
+ await store. handleEvent (updateEvent (model.messages.first));
800
800
checkNotifiedOnce ();
801
- model. handleUpdateMessageEvent (updateEvent (model.messages[model.messages.length - 2 ]));
801
+ await store. handleEvent (updateEvent (model.messages[model.messages.length - 2 ]));
802
802
checkNotifiedOnce ();
803
803
804
804
// … and where it's not.
805
- model. handleUpdateMessageEvent (updateEvent (model.messages.last));
805
+ await store. handleEvent (updateEvent (model.messages.last));
806
806
checkNotifiedOnce ();
807
807
808
808
// Then test reassemble.
0 commit comments