Skip to content

bridgev2: add PinHandlingNetworkAPI for message pin state changes#478

Open
kalix127 wants to merge 1 commit intomautrix:mainfrom
kalix127:feat/pin-handling-network-api
Open

bridgev2: add PinHandlingNetworkAPI for message pin state changes#478
kalix127 wants to merge 1 commit intomautrix:mainfrom
kalix127:feat/pin-handling-network-api

Conversation

@kalix127
Copy link
Copy Markdown

Implements the PinHandlingNetworkAPI interface proposed in #477.

Adds StatePinnedEvents to the event processor registration and a new case in handleMatrixEvent that dispatches pin state changes to the connector using the existing handleMatrixRoomMeta pattern. The connector receives both the new and previous PinnedEventsEventContent so it can diff them to determine which messages were pinned or unpinned.

This is needed by mautrix-whatsapp to bridge message pins from Matrix to WhatsApp (mautrix/whatsapp#905).

Closes #477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add PinHandlingNetworkAPI to support bridging message pins

1 participant