+ {events.map((mEvent) => {
+ const content = mEvent.getContent();
+ const mxcUrl: string | undefined = content.url ?? content.file?.url;
+ if (!mxcUrl) return null;
+ const thumbUrl =
+ mxcUrlToHttp(mx, mxcUrl, useAuthentication, 120, 120, 'crop') ?? '';
+ const body: string = content.body ?? '';
+ return (
+
+
+
+ );
+ })}
+
+ )}
+
+ {/* File list */}
+ {tab === 'file' && events.length > 0 && (
+