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

Delivery of offline messages #65

Open
Ghabry opened this issue Sep 28, 2015 · 6 comments
Open

Delivery of offline messages #65

Ghabry opened this issue Sep 28, 2015 · 6 comments

Comments

@Ghabry
Copy link
Contributor

Ghabry commented Sep 28, 2015

This is more a question about the implementation then a bug report.

spectrum2 is configured to run in "server mode" and to use the "purple backend"

I play around with spectrum2 since a few days and noticed that offline messages are not properly delivered. But I'm not really sure if this is a problem with the plugins I tested, because at least for prpl-jabber the delivery worked.

I tried to work around this issue by setting spectrum2 to bouncer mode (transport setting "Stay connected to legacy network when offline on XMPP") to hold the connection when I disconnect.
But the delivery of offline-messages does still not work when reconnecting, actually spectrum2 just "eats" the messages and they are gone.

By looking at the code the message buffering and playback is implemented, but only works in Gateway mode.

Is there a reason why this isn't implemented for server mode? I created a quick&dirty patch (needs some cleanup ^^) that fixes message-buffering and -playback in server mode. Is there any interest in this?

@vitalyster
Copy link
Collaborator

It should work in server mode, but yes, patches are welcome

@jankaluza
Copy link
Collaborator

Do you still have that patch? Even if it's not perfect, it would help us.

@Ghabry
Copy link
Contributor Author

Ghabry commented Feb 1, 2016

Sorry, I completely missed this message here. Never checked the Repo anymore because I thought spectrum2 is dead.

Are you still interested in the patch?

@mcepl
Copy link
Contributor

mcepl commented Feb 29, 2016

Try him by attaching it ;)

@vitalyster
Copy link
Collaborator

ping?

@TomTheDragon
Copy link

TomTheDragon commented Mar 9, 2024

I am running Spectrum2 as a transport for F-Chat (libpurple backend) and they dont support offline messages at all.
Its nice that you can tell Spectrum2 to keep running all the time, so that the messages others try to send you get buffered, but it unfortunately does not work the other way around.
Are there other ways this could get accomplished? I mean i used a function on plugin back and the day (offlinemsg from the core pack), which held all messages i wanted to send towards others until they were online again, something like could work here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants