Created
July 9, 2012 09:53
-
-
Save lapis25/3075493 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Ocean/Standalone/Handler/Room.pm b/lib/Ocean/Standalone/Handler/Room.pm | |
index ee9c9b3..31b3a09 100644 | |
--- a/lib/Ocean/Standalone/Handler/Room.pm | |
+++ b/lib/Ocean/Standalone/Handler/Room.pm | |
@@ -224,7 +224,7 @@ sub on_room_invitation_decline { | |
my $builder = Ocean::Stanza::DeliveryRequestBuilder::RoomInvitationDecline->new; | |
$builder->room($room->name); | |
$builder->from($sender_jid); | |
- $builder->from($receiver_jid); | |
+ $builder->to($receiver_jid); | |
$builder->reason($reason); | |
$builder->thread($thread); | |
$ctx->deliver($builder->build()); | |
diff --git a/lib/Ocean/Stanza/DeliveryRequestBuilder/RoomInvitationDecline.pm b/lib/Ocean/Stanza/DeliveryRequestBuilder/RoomInvitationDecline.pm | |
index bf7dd54..9f21168 100644 | |
--- a/lib/Ocean/Stanza/DeliveryRequestBuilder/RoomInvitationDecline.pm | |
+++ b/lib/Ocean/Stanza/DeliveryRequestBuilder/RoomInvitationDecline.pm | |
@@ -19,7 +19,7 @@ sub room { | |
sub from { | |
my ($self, $from) = @_; | |
- $self->{_decliner} = $from; | |
+ $self->{_decliner} = "$from"; | |
return $self; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment