Check if roster list is empty. If empty, sync via REST API.
Now the roster is updated in the backend.
But how to do I get this updated roster?
I'm assuming here, if you can expose the queryForRoster method I can use it to query for the roster again.
Please suggest any alternate mechanisms I can use.
I am trying to build a whatsapp clone. I decided to use ejabberd in the backend and flutter for frontend. For XMPP I decided to use this library.
In my application there's a flow like this
Since the library requests for roster only at connectionState Ready https://github.com/vukoye/xmpp_dart/blob/3b1a0588562b9e591488c99d834088391840911d/lib/src/roster/RosterManager.dart#L99
Here's the problem I think I will face..
Now the roster is updated in the backend.
But how to do I get this updated roster? I'm assuming here, if you can expose the queryForRoster method I can use it to query for the roster again. Please suggest any alternate mechanisms I can use.