Skip to content

Commit

Permalink
workaround for matrix-org/synapse#6536
Browse files Browse the repository at this point in the history
I feel like there are going to be a lot of these
  • Loading branch information
richvdh committed Dec 16, 2019
1 parent 79ce399 commit 2d965b1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/50federation/38receipts.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@
do => sub {
my ( $creator_user, $room_id, $federated_user_id, $outbound_client, $inbound_server ) = @_;

my $event_id;
my ( $event_id, $room );

$outbound_client->join_room(
server_name => $creator_user->server_name,
room_id => $room_id,
user_id => $federated_user_id,
)->then( sub {
( $room ) = @_;
log_if_fail "Joined room $room_id";

# workaround for https://github.com/matrix-org/synapse/issues/6536
$loop->delay_future( after => 0.5 );
})->then( sub {
# send a message from the federated user
my ( $room ) = @_;

my $event = $room->create_and_insert_event(
type => "m.room.message",
Expand Down

0 comments on commit 2d965b1

Please sign in to comment.