From 4a60edc8933fa29996ee707d47fa941bdbd201ba Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Mon, 27 Jul 2026 15:33:24 +0200 Subject: [PATCH] add React D-Bus method Exposes React(sessionID, emoji) over D-Bus so GUI clients can send emoji reactions without direct 9P access. --- dbus.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dbus.go b/dbus.go index e496107..bab9074 100644 --- a/dbus.go +++ b/dbus.go @@ -292,6 +292,15 @@ func (a *DBusAdapter) Submit(sessionID, prompt string) (bool, *dbus.Error) { return true, nil } +func (a *DBusAdapter) React(sessionID, emoji string) (bool, *dbus.Error) { + sess := a.mgr.Session(sessionID) + if sess == nil { + return false, nil + } + sess.Core.React(emoji) + return true, nil +} + func (a *DBusAdapter) Interrupt(sessionID string) (bool, *dbus.Error) { sess := a.mgr.Session(sessionID) if sess == nil {