Skip to content

fix(chat): no chat with colleagues without chat - #284

Open
edospadoni wants to merge 1 commit into
mainfrom
chore/chat-island-0.1.74
Open

edospadoni wants to merge 1 commit into
mainfrom
chore/chat-island-0.1.74

Conversation

@edospadoni

Copy link
Copy Markdown
Member

NethLink showed the chat button in search results and speed dials on every colleague, also on those whose CTI profile has no chat permission: messages sent to them were never read, and they all appeared at once when the permission was enabled later. NethServer/dev#8405

This updates chat-island to 0.1.74, which reads from the chat gateway who has the chat. NethLink gets that list from the chat window and shows the chat button only for colleagues who have the chat. With a NethVoice that does not send the list yet, nothing changes: everyone keeps the button.

  • chat-island 0.1.74: colleagues without the chat are not offered for a new chat or a group, and a chat with one of them is read-only ("Chat not active")
  • the chat window forwards the new chat-island-chat-users event; useCanChatWith() hides the chat button in search results and speed dials

How to test

Needs a NethVoice with nethesis/ns8-nethvoice#1368.

  • give Bob a CTI profile without the Chat permission; log in to NethLink as Alice, whose profile has it
  • search for Bob, or add him to the speed dials: no chat button; other colleagues have it
  • new chat panel: Bob is not listed; an old chat with Bob is readable, the message box says "Chat not active"
  • enable the Chat permission on Bob's profile: within two minutes the chat button comes back

See also


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

The chat button in search results and speed dials was shown on every
colleague, also on those whose CTI profile has no chat: messages to
them were never read.

chat-island 0.1.74 reads who has the chat from the chat gateway and
keeps the others out of new chats and groups; a chat with one of them
is read-only. NethLink takes the list from the island
(chat-island-chat-users) and shows the chat button only for
colleagues who have the chat. Until the island sends it, everyone
keeps the button.

Assisted-by: Claude Code:Opus 5.5

This branch has not been deployed

No deployments
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