monal-im / Monal

Monal for XMPP (iOS and macOS)
https://monal-im.org
Other
522 stars 107 forks source link

[Feature]: Synchronize subscription requests across devices #1301

Open sstrigler opened 1 hour ago

sstrigler commented 1 hour ago

Precondition

Cross-checked related issues?

Describe your feature

Currently if I have multiple instances of Monal (eg desktop and phone), if I get an incoming subscription request that I want to block, I have to handle them on both devices. Instead, if I react on one instance I want the other to reflect that change.

Eg, if I decline a subscription request, a client receives a stanza like the following and it should handle it by removing the corresponding entry from the list of incoming requests (and send an iq-result accordingly).

<iq xmlns='jabber:client' to='icke@example.org/eli' from='icke@example.org' type='set' id='push6302782379657504161'>
    <query xmlns='jabber:iq:roster' ver='173685c48e2d68315a1e34d4d6d997f25f53a223'>
        <item subscription='remove' jid='spammer@otherserver.com'/>
    </query>
</iq>

<iq type='result' id='push6302782379657504161'/>

PS: This seems to work if I accept the request.

sstrigler commented 1 hour ago

So, yeah, maybe this should have been filed as a bug. Let me know if I should re-post.