Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting custom keys onTimeline updated Snapshot[SDK] #8834

Open
mdhanif-simformsolutions opened this issue May 21, 2024 · 1 comment
Open

Comments

@mdhanif-simformsolutions

Description

I am adding a some custom keys to my message content while sending event, now when I get the message in my onTimeLineUpdated Listener there the custom keys are getting removed if the message is a reply to another message.

For eg :-
I am replying to a message with custom key as attachment which is list of custom data type.
Here's my json which I send :-

"{m.relates_to={m.in_reply_to={event_id=eventId}}, attachments=[{info={mtype=m.image, name=Happy Birthday GIF by Rodney Dangerfield.image/gif, size=0, type=image/gif}, url={content_uri=attachmentUrlHere}}], body=, msgtype=m.text, formatted_body=}"

Now, when I get this in onTimelinUpdate it removes attachments key from the object but when I try to get the TimeLineEvent with :- roomService?.getRoom(roomId)?.getTimelineEvent(id) it gives me all the things in my response.

Also in my message if I change m.relates_to to any other key like m.attachment_relates_to then it works and give all the things as expected.

It only happens in Android Sdk, other then that iOS, Web and others work fine.

@mdhanif-simformsolutions
Copy link
Author

Hello,
is there any update on this or did you get a chance to work on this.

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

No branches or pull requests

1 participant