diff --git a/src/mod_last.erl b/src/mod_last.erl index 28832ca8d..270c54f70 100644 --- a/src/mod_last.erl +++ b/src/mod_last.erl @@ -152,9 +152,9 @@ process_sm_iq(From, To, #iq{type = get} = IQ_Rec) -> privacy_check_packet, exmpp_jid:prep_domain(To), allow, [exmpp_jid:prep_node(To), exmpp_jid:prep_domain(To), UserListRecord, - {From, To, + {To, From, exmpp_presence:available()}, - in]) of + out]) of allow -> get_last(IQ_Rec, exmpp_jid:prep_node(To), exmpp_jid:prep_domain(To)); deny -> diff --git a/src/mod_last_odbc.erl b/src/mod_last_odbc.erl index d05580de3..5bb98aa04 100644 --- a/src/mod_last_odbc.erl +++ b/src/mod_last_odbc.erl @@ -111,9 +111,9 @@ process_sm_iq(From, To, #iq{type = get} = IQ_Rec) -> privacy_check_packet, exmpp_jid:prep_domain(To), allow, [exmpp_jid:prep_node(To), exmpp_jid:prep_domain(To), UserListRecord, - {From, To, + {To, From, exmpp_presence:available()}, - in]) of + out]) of allow -> get_last(IQ_Rec, User, Server); deny ->