{
+ setAttachmentOrUi(blob);
+ roomsInput.setAttachment(roomId, blob);
+ }}
+ />
+ );
+ default:
+ console.log('unhandled attachmentOrUi');
+ return null;
+ }
+ }
+
function attachReply() {
return (
@@ -450,7 +440,7 @@ function RoomViewInput({
return (
<>
{ replyTo !== null && attachReply()}
- { attachmentOrUi !== null && attachFile() }
+ { attachmentOrUi !== null && attachmentFrame() }