-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send an image message via Matrix #1154
Conversation
@@ -357,7 +353,7 @@ export class MessageInput extends React.Component<Properties, State> { | |||
} | |||
|
|||
get allowFileAttachment() { | |||
return !featureFlags.enableMatrix && !this.props.isEditing; | |||
return !this.props.isEditing; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we allowing any type of file now or just images?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only images 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, but enabling this will allow a user to select / drag any type of file, right? As in, do we need more checks to prevent other files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it would. That request will just fail because we only support sending the images for now. I left it thinking sending files are gonna be a recent follow up. I can look into adding more checks, to only allow images to be "sent" via the UI for now. Let me know
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you see how it fails? What does the user experience? If they're getting ok feedback then it's fine but we can't just let things get into bad states.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does the user know why that failed? If I were a user I'd just keep trying.
Confirm with Kelly, maybe? See if that's good enough for now?
Is there not just a way to limit the drag/drop component to certain file types or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just merge this but please follow up with the file type discussion to get it resolved one way or the other.
6023ba9
to
1cf9c5f
Compare
What does this do?
Adds the ability to send an image message while matrix is enabled.
Screen.Recording.2023-11-04.at.4.20.02.AM.mov