From d5f0d6349cbe18deb1fc5430bf34e4002bf1531a Mon Sep 17 00:00:00 2001 From: Hans Svensson Date: Mon, 16 Mar 2020 16:20:10 +0100 Subject: [PATCH] Fix flipped arguments in call to roster:phone_id --- apps/roster/src/roster.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/roster/src/roster.erl b/apps/roster/src/roster.erl index e6239977a..f501c1cee 100644 --- a/apps/roster/src/roster.erl +++ b/apps/roster/src/roster.erl @@ -1106,7 +1106,7 @@ contact_readmsg(_) -> 0. contact_readmsg(#'Roster'{id = LocalId, phone = Phone}, #'Roster'{} = R) -> - contact_readmsg(roster:phone_id(LocalId, Phone), R); + contact_readmsg(roster:phone_id(Phone, LocalId), R); contact_readmsg(LocalPhoneId, #'Roster'{userlist = Contacts}) -> contact_readmsg(lists:keyfind(LocalPhoneId, #'Contact'.phone_id, Contacts)); contact_readmsg(LocalPhoneId, PhoneId) -> -- GitLab