branch: externals/crdt
commit 76da6acfac915de00e757aca0316b6edd43b741b
Author: Qiantan Hong <[email protected]>
Commit: Qiantan Hong <[email protected]>

    update buffer/user menu in post-command-hook to account for focus change
---
 crdt.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crdt.el b/crdt.el
index 13db964..5bd3d07 100644
--- a/crdt.el
+++ b/crdt.el
@@ -1004,7 +1004,8 @@ Send message to other peers about any changes."
   (unless (eq crdt--buffer-network-name (crdt--session-focused-buffer-name 
crdt--session))
     (crdt--broadcast-maybe
      (crdt--format-message `(focus ,(crdt--session-local-id crdt--session) 
,crdt--buffer-network-name)))
-    (setf (crdt--session-focused-buffer-name crdt--session) 
crdt--buffer-network-name))
+    (setf (crdt--session-focused-buffer-name crdt--session) 
crdt--buffer-network-name)
+    (crdt--refresh-users-maybe))
   (let ((cursor-message (crdt--local-cursor)))
     (when cursor-message
       (crdt--broadcast-maybe (crdt--format-message cursor-message)))))

Reply via email to