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

Description
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"?