diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 461cd9660..39140d90e 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -3849,8 +3849,7 @@ check_decline_invitation(Packet) -> %% The original stanza must be slightly modified. send_decline_invitation({Packet, XEl, DEl = #xmlel{name='decline'}, ToJID}, RoomJID, FromJID) -> - FromString = exmpp_jid:to_binary(FromJID), - + FromString = exmpp_jid:bare_to_binary(FromJID), DEl1 = exmpp_xml:remove_attribute(DEl, <<"to">>), DEl2 = exmpp_xml:set_attribute(DEl1, <<"from">>,FromString), XEl2 = replace_subelement(XEl,DEl2),