boxdot / gurk-rs

Signal Messenger client for terminal
GNU Affero General Public License v3.0
440 stars 33 forks source link

send attachments are not shown when also sending text #278

Closed knoxell closed 3 months ago

knoxell commented 3 months ago

Tested on the current version 0.4.3, build from the gurk-git package (from the aur).

Expected behavior

Sending the message

look at these cute cat pics :D
file:///home/user/catpic.0.png
file:///home/user/catpic.1.png

results in

17:07 user: look at these cute cat pics :D
             <attached: catpic.0.png, catpic.1.png>

Actual behavior

Sending a message like

look at these cute cat pics :D
file:///home/user/catpic.0.png
file:///home/user/catpic.1.png

results in

17:07 user: look at these cute cat pics :D

while sending a message like

file:///home/user/catpic.0.png
file:///home/user/catpic.1.png

results in

17:07 user:  <attached: catpic.0.png, catpic.1.png>

Additional information

Here you can find the code responsible for the difference in behavior, between adding text to the attachment or not and belongs to this pull request I know the code is commented with

if has_attachments && message.is_empty() { 
    // TODO: Temporary solution until we start rendering attachments
    ...
}

but why only show there are attachments if you don't add text to the message?

Also why not show attachments like it's done with received messages?

some love

🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒

I just started using the gurk and I love it!

Being able to use signal without the overhead of electronium is awesome and I hope this project and libsignal-service-rs are going to be very long lived!!

I can't wait until viewing or at opening attachments works.

🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒❤️🥒

gferon commented 3 months ago

How can we not immediately try to address this issue with such a great use of the 🥒 emojis, thank you 🫶🏻!

knoxell commented 3 months ago

Hahaha, thank you so much ^^ ❤️ I took the liberty to implement a possible solution myself 🥒🥒🥒 :D