tulir / gomuks

A terminal based Matrix client written in Go.
https://maunium.net/go/gomuks
GNU Affero General Public License v3.0
1.3k stars 124 forks source link

Image pasting functionality into rooms #442

Open b401 opened 9 months ago

b401 commented 9 months ago

Hey there,

I've gone ahead and implemented image paste functionality into gomuks. It seems like the better way to do this would get it done through mautrix instead but this is so far the working solution I've come up with.

I wasn't able to get Paste() or OnPasteEvent() to register my inputs so this is why I've added it to OnKeyEvent()

Thanks a lot for all your work on gomuks!

AlexBocken commented 7 months ago

Thanks so much for developing this PR, I've been using your branch for the last few weeks without any issues. Since using tulir's Whatsapp bridge ( https://github.com/mautrix/whatsapp ) I've come across an error which only persists in gomuks (Element for example does not have this error).

On pasting into Whatsapp-bridged chats I get the error:
image

Would you be able to insert a media type as well such that image pasting works for Whatsapp bridged chats as well?

Let me know if you need more information from me to resolvethis issue.