@valeriansaliou I hope it is ok to leave you with unfinished changes here but you'll be much quicker wrapping this up.
As mentioned in the core-lib PR: Everything in the sidebar is a room.
Since MUC rooms need to be connected we have a delay when a direct link to a room is loaded, I've hacked this into the router. I'm not sure how you would do that properly with Vue, but from a UI perspective you'd probably want to show a spinner while the room is being fetched and then switch to the final view. While we can speed up the process in the future by caching the rooms, there will always be a situation when the cache is empty and (again) the room needs to be connected before you can send messages to it.
I've also hacked a feature into InboxForm.vue that you can invite people into a channel by sending the message /invite JID_OF_CONTACT_TO_INVITE
Also changed the two modals so that you can create a group by typing comma-separated JIDs in one and join a channel by typing its name in the other (createChannel just let's the user join it if a channel with the same name exists already)
I have commented out a bunch of code that assumed that a conversation would only ever have one other contact (I don't know what the UI will look like there), but generally you can retrieve the members of a room via its members property.
Truncated the JID in the InboxTopbar because the layout would break for the long room JIDs
As always feel free to edit/delete/start over to your hearts content with theses changes.
Adding a few notes here as well…
The changes here are in support of https://github.com/prose-im/prose-core-client/pull/28
@valeriansaliou I hope it is ok to leave you with unfinished changes here but you'll be much quicker wrapping this up.
InboxForm.vue
that you can invite people into a channel by sending the message/invite JID_OF_CONTACT_TO_INVITE
createChannel
just let's the user join it if a channel with the same name exists already)members
property.As always feel free to edit/delete/start over to your hearts content with theses changes.