You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are working with a modified version of hungryserv (Matrix homeserver) that sends specific bridge source data via events. These events contain bridge information, such as identifiers for remote services (e.g., Twitter, WhatsApp), and are critical for our system to process correctly.
The source of this data appears in the event messages in the json payload, under the com.beeper.bridge.identifiers key (and other relevant fields like com.beeper.bridge.network, com.beeper.bridge.remote_id, etc.).
Issue:
We need to figure out how to properly access and read this data from the event messages sent to our Matrix client.
Currently, this data does not appear to be directly accessible from the Matrix SDK in our setup, probably because its for vanilla matrix homeserver and hungryserv is modified.
Relevant Event Data:
The MessageEvent Data contains additional details, such as the identifiers, network, remote_id, and service, that we are interested in:
We would like to modify our Matrix SDK bot to properly handle and retrieve this com.beeper.bridge data from incoming event messages. Specifically, we need to parse and extract the following fields from the event content:
com.beeper.bridge.identifiers
com.beeper.bridge.network
com.beeper.bridge.remote_id
com.beeper.bridge.service
This can be done by extending the message handling logic in the SDK to access these custom fields in the event's JSON payload.
Steps to Implement:
Parse custom event fields: We need to ensure that the SDK can parse and expose the com.beeper.bridge fields from the event's JSON content.
Deserialize event content: Use a custom struct to deserialize the relevant fields from the event's content, which can then be accessed and logged or processed to verify source media of messages.
Here’s a suggested structure for the custom fields:
Context:
We are working with a modified version of
hungryserv
(Matrix homeserver) that sends specific bridge source data via events. These events contain bridge information, such as identifiers for remote services (e.g., Twitter, WhatsApp), and are critical for our system to process correctly.The source of this data appears in the event messages in the
json
payload, under thecom.beeper.bridge.identifiers
key (and other relevant fields likecom.beeper.bridge.network
,com.beeper.bridge.remote_id
, etc.).Issue:
We need to figure out how to properly access and read this data from the event messages sent to our Matrix client.
Currently, this data does not appear to be directly accessible from the Matrix SDK in our setup, probably because its for vanilla matrix homeserver and hungryserv is modified.
Relevant Event Data:
The
MessageEvent Data
contains additional details, such as theidentifiers
,network
,remote_id
, andservice
, that we are interested in:Proposed Solution:
We would like to modify our Matrix SDK bot to properly handle and retrieve this
com.beeper.bridge
data from incoming event messages. Specifically, we need to parse and extract the following fields from the event content:com.beeper.bridge.identifiers
com.beeper.bridge.network
com.beeper.bridge.remote_id
com.beeper.bridge.service
This can be done by extending the message handling logic in the SDK to access these custom fields in the event's JSON payload.
Steps to Implement:
com.beeper.bridge
fields from the event's JSONcontent
.Here’s a suggested structure for the custom fields:
And integrate it into the message handling function as follows:
The text was updated successfully, but these errors were encountered: