Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Custom fields from content in sendEvent don't come in onEvent #515

@closw

Description

@closw

I create even as follows:

JsonParser parser = new JsonParser();
        JsonElement element = parser.parse("{" +
                "\"body\" : \"" + text + "\"," +
                "\"msgtype\" : \"m.text\"," +
                "\"mirrorIdKey\" : \"" + mirrorIdKey + "\"" +
                "}");
        JsonObject content = element.getAsJsonObject();
        Event event = new Event(Event.EVENT_TYPE_MESSAGE, content, myUserId, roomId);

and send it:

room.sendEvent(event, new SimpleApiCallback<Void>() {
            @Override
            public void onSuccess(Void aVoid) {
               //some logic
            }
        });

and my custom field "mirrorIdKey" don't come in interface method onEvent.
How I can get "mirrorIdKey" in "onEvent"?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions