fix: now phone users can attach any media, not just photos
This commit is contained in:
@@ -165,10 +165,10 @@ function Composer({ onSend, onTyping }: ComposerProps) {
|
|||||||
{uploadError && <p className="mb-1.5 px-1 text-[11px] text-danger">{uploadError}</p>}
|
{uploadError && <p className="mb-1.5 px-1 text-[11px] text-danger">{uploadError}</p>}
|
||||||
|
|
||||||
<div className="bevel-in flex items-end gap-1 bg-surface p-1">
|
<div className="bevel-in flex items-end gap-1 bg-surface p-1">
|
||||||
<input
|
<input
|
||||||
ref={fileInputRef}
|
ref={fileInputRef}
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/*,*"
|
accept="*/*"
|
||||||
className="hidden"
|
className="hidden"
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
const file = event.target.files?.[0]
|
const file = event.target.files?.[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user