RetroShare / RetroShare

RetroShare is a Free and Open Source cross-platform, Friend-2-Friend and secure decentralised communication platform.
https://retroshare.cc/
Other
1.74k stars 279 forks source link

jsonapi: visible gui activities after calling jsonapi methods #2367

Open zeners opened 3 years ago

zeners commented 3 years ago

assuming jsonapi used to build an alternate front-end (like webui), that should not result in direct ui actions, like opening new windows, getting focus and so on (but reflect the actions, like show now active downloads, new channels, chats and so on)

unfortunately, the following jsonapi-methods (found so far), that results in unwanted ui-interactions:

defnax commented 3 years ago

@G10h4ck

G10h4ck commented 3 years ago

That is not JSON API doing it but RetroShare-gui reacting to events happening inside libretroshare, as an example /rsMsgs/initiateDistantChatConnexion will generate an attempt to create a distant chat, when a distant chat is created RetroShare-gui react by creating a window, the only possible fix I see to this is RetroShare-gui keeping track of the chat opened by it and opening windows only in that case