Open valeriansaliou opened 2 years ago
How are we going to handle presence subscriptions?
Since we're working in a team/company environment it would be cumbersome if you'd have to send subscription requests to each of your teammates.
But that's a deviation from the standard XMPP and could only be handled on the server since presence subscriptions are one-way (e.g. both parties have to allow subscription).
You're right, Prose will come w/ a Prosody server already configured to auto-manage the roster + subscriptions for all @domain that are the same as yours. So in this regard, we will only have to deal w/ incoming 'subscribe' presence types, which if the user is using a Prose-backed XMPP server configuration would only come from external domains, if the server administrator enabled server to server federation, that is if they opted for the server not to be isolated for security reasons (eg. prevent phishing and scams).
The contact accept/reject interface was designed in this view (in the "invites" tab):
[ ] Implement fetching of roster (and refresh the local store w/ added, updated, removed contacts)
[x] Handle live roster updates from the server when connected (roster pushes)
[ ] Implement a simple popup to start a new conversation with a target JID (a single JID for now)