From 017a74c4e4b2d31d4603d33d0de158eff716989b Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 12 Feb 2025 18:20:44 -0500 Subject: [PATCH] ssb: Reload the profile on follow/unfollow/block/unblock. --- apps/ssb.json | 2 +- apps/ssb/tf-profile.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/ssb.json b/apps/ssb.json index 3b5822e4..a61e192b 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&0ZtxnihH3oETfi0vhhEwc9O66SrjfiFcHDVBAIxICy0=.sha256" + "previous": "&weo9lucKMSz3xzM6l3knRepNnyRIzKlaJnP9NDJAk+g=.sha256" } diff --git a/apps/ssb/tf-profile.js b/apps/ssb/tf-profile.js index 900d19c3..3d00cc64 100644 --- a/apps/ssb/tf-profile.js +++ b/apps/ssb/tf-profile.js @@ -62,6 +62,7 @@ class TfProfileElement extends LitElement { } modify(change) { + let self = this; tfrpc.rpc .appendMessage( this.whoami, @@ -73,6 +74,10 @@ class TfProfileElement extends LitElement { change ) ) + .then(function() { + self._follow_whoami = undefined; + self.load(); + }) .catch(function (error) { alert(error?.message); });