Skip to content

Commit

Permalink
Deflake Can re-join room if re-invited
Browse files Browse the repository at this point in the history
Fixes (I hope) a problem where the joining user wouldn't see the event sent by
the creator.
  • Loading branch information
richvdh committed Aug 24, 2021
1 parent e3076fb commit 19ff001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/30rooms/31forget.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 19ff001

Please sign in to comment.