Skip to content

fix: no chat with colleagues without chat - #8

Merged
edospadoni merged 1 commit into
mainfrom
fix-chat-permission-8405
Dec 2, 2026
Merged

edospadoni merged 1 commit into
mainfrom
fix-chat-permission-8405

Conversation

@edospadoni

@edospadoni edospadoni commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Colleagues whose NethVoice CTI profile has no chat permission were offered as chat contacts, and messages sent to them were accepted: nobody read them, and they all appeared at once when the permission was enabled later. NethServer/dev#8405

The island now asks the chat gateway which operators have the chat, together with the lookups it already repeats every two minutes. Nothing changes when the server cannot tell (older gateway or unreadable configuration): everyone keeps the chat, as before.

  • colleagues without the chat are left out of the new chat list and of the members that can be added to a group
  • an existing chat with one of them stays readable, but the message box is disabled with "Chat not active"
  • hosts receive the list with the new chat-island-chat-users event (the CTI hides its chat buttons with it), and conversations carry nochat

How to test

  • give Bob a CTI profile without the Chat permission, then log in to the CTI as Alice, whose profile has it
  • open the new chat panel and search for Bob: he is not listed
  • open the chat with Bob from an old conversation: it is readable, the message box says "Chat not active"
  • enable the Chat permission on Bob's profile: within two minutes he is listed again and the chat can be written to

See also


Generated by Claude Code:claude-opus-5.5 with nethserver-pr

Colleagues whose CTI profile has no chat were offered as contacts and
messages to them were accepted: nobody read them, and they all showed
up once the permission was enabled.

The island now reads who has the chat from the gateway
(GET /chat-gw/users/chat) with the other periodic lookups. Those
colleagues are left out of the new chat and group member lists, a
chat with one of them stays readable but cannot be written to ("Chat
not active"), and hosts get the list with chat-island-chat-users to
hide their own chat buttons. When the server cannot tell, everyone
keeps the chat as before.

Assisted-by: Claude Code:Opus 5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant