@Override public void onRetry() { getContextOfEvent(roomId, eventId, limit, roomEventFilter, callback); } }));
@Override public void onMatrixError(MatrixError e) { if (TextUtils.equals(e.errcode, MatrixError.UNRECOGNIZED)) { // Try to retrieve the event using the context API // It's ok to pass null as a filter here getContextOfEvent(roomId, eventId, 1, null, new SimpleApiCallback<EventContext>(callback) { @Override public void onSuccess(EventContext eventContext) { callback.onSuccess(eventContext.event); } }); } else { callback.onMatrixError(e); } } });
.getContextOfEvent(mRoomId, mInitialEventId, limit, FilterUtil.createRoomEventFilter(mDataHandler.isLazyLoadingEnabled()), new SimpleApiCallback<EventContext>(callback) { @Override