Skip to content

fix(chat): sign the timer and screen-capture setting in add-members - #100

Merged
kyletruong merged 1 commit into
mainfrom
fix/chat-add-members-group-settings
Sep 29, 2026
Merged

kyletruong merged 1 commit into
mainfrom
fix/chat-add-members-group-settings

Conversation

@kyletruong

Copy link
Copy Markdown
Contributor

xurl chat add-members failed with "Invalid action signature" on a group whose message timer (message_ttl_ms) or screen-capture blocking setting (screen_capture_blocking_enabled) had been set.

The member-add action signature covers the group's current state. addGroupMembers already reads both settings from the conversation, but it never passed them to PrepareGroupMembersChange, so the signed state reported them as unset and didn't match the group.

Pass CurrentTTLMsec and CurrentScreenCaptureBlockingEnabled from the conversation metadata. The new TestAddGroupMembersSignsGroupSettings checks that both values reach the signed member-add payload; it fails without the fix.

xurl chat add-members failed with "Invalid action signature" on a group
whose message timer (message_ttl_ms) or screen-capture blocking setting
(screen_capture_blocking_enabled) had been set.

The member-add action signature covers the group's current state.
addGroupMembers already reads both settings from the conversation, but it
never passed them to PrepareGroupMembersChange, so the signed state
reported them as unset and didn't match the group.

Pass CurrentTTLMsec and CurrentScreenCaptureBlockingEnabled from the
conversation metadata. The new TestAddGroupMembersSignsGroupSettings
checks that both values reach the signed member-add payload; it fails
without the fix.
@kyletruong
kyletruong merged commit 96c6271 into main Sep 29, 2026
3 checks passed
@kyletruong
kyletruong deleted the fix/chat-add-members-group-settings branch September 29, 2026 04:01
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.

2 participants