Skip to content

fix: name unnamed groups from their members and keep the name current - #7

Merged
GraysonCAdams merged 4 commits into
mainfrom
fix/group-names
Nov 26, 2026
Merged

GraysonCAdams merged 4 commits into
mainfrom
fix/group-names

Conversation

@GraysonCAdams

Copy link
Copy Markdown
Contributor

A group room created before its roster was known was named "Group Chat", and the contact refresh never replaced a name that did not come from Apple once a room had one, so the placeholder stuck for months on a live bridge. Unnamed groups now get a member-built name, recorded in portal metadata as generated_name, and the refresh replaces a room name only when it is empty, the old placeholder, or that recorded name. A participant's name or one set from Matrix is never overwritten. These names stay on the homeserver: bridgev2 drops the bot's own m.room.name events before HandleMatrixRoomName.

Test plan

  • The two tests in the second commit fail on the refactor commit and pass with the fix.
  • Full pkg/ and cmd/ suite and release build, then deployed on a live bridge: the stuck room was renamed on the first contact sync and nothing was sent to Apple.

Grayson Adams added 4 commits November 26, 2026 18:38
A group room created before its roster was known was named "Group Chat", and the contact refresh never replaced a non-authoritative name once a room had one, so the placeholder stuck. Rooms with no known members now stay unnamed until the roster arrives. The name the bridge builds is recorded in portal metadata, and the refresh replaces a room name only when it is empty, the old placeholder, or that recorded name, so a name the user or a participant chose is kept. Room names the bridge sets are its own events, which bridgev2 never hands to HandleMatrixRoomName, so none reach Apple.
@GraysonCAdams
GraysonCAdams merged commit 0b04dab into main Nov 26, 2026
4 checks passed
@GraysonCAdams
GraysonCAdams deleted the fix/group-names branch November 26, 2026 23:52
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