diff --git a/apps/wiki.json b/apps/wiki.json
index 8bd14630..9b73770e 100644
--- a/apps/wiki.json
+++ b/apps/wiki.json
@@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "📝",
- "previous": "&hTgvoLzZ+6dlqYL7zRDAa91TzptTquAY8MaZ7Gn36Cc=.sha256"
+ "previous": "&DaYqKHRBKhjFGaOzbKZ1+/pLspJeEkDJYTF2B50tH6k=.sha256"
}
diff --git a/apps/wiki/app.js b/apps/wiki/app.js
index 7fc80313..7beb8a90 100644
--- a/apps/wiki/app.js
+++ b/apps/wiki/app.js
@@ -4,6 +4,9 @@ import * as utils from './utils.js';
let g_hash;
let g_collection_notifies = {};
+tfrpc.register(async function getActiveIdentity() {
+ return ssb.getActiveIdentity();
+});
tfrpc.register(async function getOwnerIdentities() {
return ssb.getOwnerIdentities();
});
@@ -54,6 +57,9 @@ core.register('message', async function message_handler(message) {
await tfrpc.rpc.hash_changed(message.hash);
}
});
+core.register('setActiveIdentity', async function setActiveIdentityHandler(id) {
+ await tfrpc.rpc.setActiveIdentity(id);
+});
tfrpc.register(function set_hash(hash) {
if (g_hash != hash) {
diff --git a/apps/wiki/index.html b/apps/wiki/index.html
index d363220a..c30e24b5 100644
--- a/apps/wiki/index.html
+++ b/apps/wiki/index.html
@@ -10,7 +10,6 @@
window.litDisableBundleWarning = true;
-