From 983bd728ccdae7a7fefe42d296315c974da0055b Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Thu, 25 Feb 2016 18:32:57 +0000 Subject: [PATCH] Include the state_key when looking up state --- tests/30rooms/06invite.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/30rooms/06invite.pl b/tests/30rooms/06invite.pl index 1a1fb9093..f520f1ffa 100644 --- a/tests/30rooms/06invite.pl +++ b/tests/30rooms/06invite.pl @@ -190,7 +190,8 @@ sub invited_user_can_reject_invite foreach my $event_type ( keys %state_by_type ) { push @futures, matrix_get_room_state( $creator, $room_id, - type => $event_type + type => $event_type, + state_key => $state_by_type{$event_type}{state_key}, )->then( sub { my ( $room_content ) = @_;