JFreegman / toxic

A Tox-based instant messaging and video chat client.
https://tox.chat
GNU General Public License v3.0
1.2k stars 153 forks source link

Messages not delivered when you close pane #559

Closed adscadscfr closed 8 months ago

adscadscfr commented 3 years ago

To reproduce:

When your friend reappears, the message will not be delivered (it would have been if you had left the chat-window open).

JFreegman commented 3 years ago

This isn't a bug, just a limitation of offline message sending.

danmanrana commented 3 years ago

The Tox protocol is peer-to-peer so both users need to be online for messages to be transferred. A way around it is to have another device (doesn't need fancy specs) act as an always-or-most-of-the-day on server to always be able to receive messages and you use it via SSH.

adscadscfr commented 3 years ago

I think I have not explained by problem clearly enough.

I am aware that both users need to be online for a message to be delivered! What I think it is not ok is the difference in behaviour:

Obviously toxic tries to deliver the message in one case but gives up in the other. I believe a uniform behaviour would be better. Did I meanage to clarify what I meant?

JFreegman commented 3 years ago

I understood what you meant. Like I said, that's just a limitation of the client. When you close a chat window all the associated buffers are cleared. To properly fix this would require some structural changes and an additional config file that saves unsent messages when you exit the client. The only solution for now is to just not close a window before your message is delivered.