-
Notifications
You must be signed in to change notification settings - Fork 360
Description
Issue
When a 1:1 chat evolves into a group chat and later reverts back to two users, navigating to chat through a user's profile opens the old 1:1 conversation instead of the current merged/group channel.
Scenario
Initially, two users create a normal 1:1 chat and exchange messages.
Later:
A group is created.
Two additional users are added to the group.
Messages are exchanged within the group.
The two additional users are removed from the group.
After removing them, the group effectively becomes a two-member chat again, but it still exists as the group channel rather than the original 1:1 channel.
Problem
When one of the users:
Opens the chat (which now appears as a group chat).
Clicks the other user's profile avatar.
Navigates to Chat from the profile.
The system opens the old 1:1 conversation thread instead of the current group channel (now containing only two users).
Steps to reproduce
Create a 1:1 chat between two users.
Exchange some messages.
Convert the conversation into a group chat by adding two additional users.
Send messages in the group.
Remove the two additional users.
Open the chat (now effectively a two-member group).
Click the other user’s profile avatar.
Select Chat from the profile.
Observe that the system opens the old 1:1 channel instead of the current conversation.
Expected behavior
When navigating to Chat from the user's profile within the converted/merged group chat, the system should:
Open the active channel currently being used for the conversation, even if it originated from a group chat.
Avoid redirecting to the old archived 1:1 channel.
The navigation should prioritize the latest active conversation between the two users.