450ce04fd9
When re-attaching to an existing session, chat rooms are fetched from sessionStorage and we join them again. However, unless we send a presence of type unavailable before reloading the page, from the XMPP server's perspective we never left the chat room. It therefore doesn't send us again the room occupants or room messages. To send a presence of type unavailable is a hack and not desireable. Rather, we want to stay in the room and just re-attach to it upon page reload. In order to do this, we need some new functionality. * Refactor the chat room sidebar into a new Backbone Model/View combo. (done). * Store/fetch room occupants in/from sessionStorage (done). * Store/fetch room messages in/from sessionStorage (not yet done). * Instead of re-joining a chat room which we never left, just register the event handlers again. (not yet done).
8 lines
242 B
HTML
8 lines
242 B
HTML
<!-- <div class="participants"> -->
|
|
<form class="room-invite">
|
|
<input class="invited-contact" placeholder="{{label_invitation}}" type="text"/>
|
|
</form>
|
|
<label>{{label_occupants}}:</label>
|
|
<ul class="participant-list"></ul>
|
|
<!-- </div> -->
|