Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0184.py @ 3585:31628770a15a
core (xmpp): renamed `SatRosterProtocol.presenceSubscribed` to `isSubscribedFrom` (and added `isSubscribedTo`)
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Jul 2021 22:15:31 +0200 |
parents | 559a625a236b |
children | 524856bd7b19 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0184.py Wed Jun 30 16:19:14 2021 +0200 +++ b/sat/plugins/plugin_xep_0184.py Wed Jul 28 22:15:31 2021 +0200 @@ -150,7 +150,7 @@ @param client: %(doc_client)s""" from_jid = jid.JID(msg_elt["from"]) - if self._isActif(client.profile) and client.roster.isPresenceAuthorised(from_jid): + if self._isActif(client.profile) and client.roster.isSubscribedFrom(from_jid): received_elt_ret = domish.Element((NS_MESSAGE_DELIVERY_RECEIPTS, "received")) try: received_elt_ret["id"] = msg_elt["id"]