Skip to content
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 attachments are not shown when also sending text #278

Closed
knoxell opened this issue Mar 22, 2024 · 2 comments
Closed

send attachments are not shown when also sending text #278

knoxell opened this issue Mar 22, 2024 · 2 comments

Comments

@knoxell
Copy link
Contributor

knoxell commented Mar 22, 2024

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
Copy link
Collaborator

gferon commented Mar 22, 2024

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

knoxell pushed a commit to knoxell/gurk-rs that referenced this issue Mar 22, 2024
knoxell added a commit to knoxell/gurk-rs that referenced this issue Mar 22, 2024
@knoxell
Copy link
Contributor Author

knoxell commented Mar 22, 2024

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

boxdot pushed a commit that referenced this issue Mar 23, 2024
@knoxell knoxell closed this as completed Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants