core (xmpp): renamed SatRosterProtocol.presenceSubscribed to isSubscribedFrom (and added isSubscribedTo)

This commit is contained in:
Goffi 2021-07-28 22:15:31 +02:00
commit fcbbc2aeed

View file

@ -150,7 +150,7 @@ class XEP_0184(object):
@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"]