diff --git a/public/vroom.pl b/public/vroom.pl index 3639220..dc9a4f6 100755 --- a/public/vroom.pl +++ b/public/vroom.pl @@ -549,6 +549,8 @@ helper delete_invitations => sub { helper check_invite_token => sub { my $self = shift; my ($room,$token) = @_; + # Expire invitations before checking if it's valid + $self->delete_invitations; my $ret = 0; my $data = $self->get_room($room); if (!$data || !$token){