diff index.xhtml @ 24:6c620e9f7d2c

Add support for retrieving all MAM messages, and for downloading it in a XEP-0227-like format.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 23 Dec 2018 15:39:51 +0100
parents e99984564b17
children d9da5c3e305d
line wrap: on
line diff
--- a/index.xhtml
+++ b/index.xhtml
@@ -156,8 +156,9 @@ Enter your nickname, so people you know 
 <td><textarea id="mam-prefs-never"/></td>
 </tr>
 </table>
+<button id="mam-retrieve">Retrieve my message archive</button> <img width="24" height="24" id="mam-retrieve-spinner" hidden=""/><br/>
 <button disabled="">View my message archive</button><br/>
-<button disabled="">Download my entire message archive</button><br/>
+<button id="mam-download" disabled="">Download my entire message archive</button><br/>
 <button disabled="">⚠️ Purge my entire message archive</button>
 </p>
 </div>
@@ -183,6 +184,8 @@ Enter your nickname, so people you know 
 
 <script src="util.js"/>
 <script src="strophe.js"/>
+<script src="strophe.rsm.js"/>
+<script src="strophe.mam.js"/>
 <script src="client.js"/>
 <script src="nickname.js"/>
 <script src="avatar.js"/>