Should not part from channels in destroy handler
Submitted by Daniel Landau
Assigned to Telepathy bugs list
Description
My problem turned up when developing Polari. I use a bouncer, so I don't part from channels, I just deconnect from the bouncer and the bouncer is kept connected to actual servers and channels.
As a user I don't expect to get kicked out of my channels unless I actually explicitly ask to get out.
When quitting Polari normally nothing bad would happen, but when crashing, or signaling with Ctrl+C all my channels disappeared. Polari doesn't have a crash handler, but Telepathy-idle does. The problem doesn't seem to happen much anymore due to mission control, but parting from channels in a crash handler (for something else crashing, granted) is still strange and not something that bouncer users expect. Especially as a normal quit doesn't do that.
I already wrote a patch, here: https://github.com/daniellandau/telepathy-idle/commit/b3fe01ca224c35647e34d49d5dac70c126a0d7c6
I'll attach it as a file here too later today when I have the time.