diff --git a/tests/30rooms/31forget.pl b/tests/30rooms/31forget.pl index 95980a944..86637027c 100644 --- a/tests/30rooms/31forget.pl +++ b/tests/30rooms/31forget.pl @@ -167,7 +167,8 @@ any { $_->{type} eq "m.room.message" && $_->{content}->{body} eq "before leave" } @{ $body->{chunk} } or die "Should have seen before leave message"; - matrix_send_room_text_message( $creator, $room_id, body => "after rejoin" ); + # have the creator send another message, and ensure the joiner can see it. + matrix_send_room_text_message_synced( $creator, $room_id, body => "after rejoin" ); })->then( sub { matrix_get_room_messages( $user, $room_id, limit => 1 ); })->then( sub {