kgraefe / pidgin-hide-chat-on-join

Hide group chats while auto-joining them.
GNU General Public License v2.0
9 stars 0 forks source link

Chats still appear on startup #20

Closed sethidden closed 2 years ago

sethidden commented 2 years ago

Hi, I'm using:

I'm on Wayland but this happens on xorg also — I checked on both.

All of my enabled plugins: image

And here's what happens on startup: image

Any additional logs I should provide?

kgraefe commented 2 years ago

Are you familiar with the command line? Running pidgin -d | grep hide-chat might reveal something usefull.

You may need to increase the hide-chat-timeout in the account settings if it takes some time to connect? It defaults to 2 seconds which might be a bit too tight.

sethidden commented 2 years ago

@kgraefe With pidgin -d | grep hide-chat I just get (15:18:40) hide-chat: Plugin loaded. — even after all the chat windows have appeared

I increased the hide-chat timeout on every account I have to 15 seconds and the windows still appear

I assume this issue does not reproduce on your side, right?

kgraefe commented 2 years ago

I don't use the plugin myself so cannot say yet. I will try to reproduce it when I find the time.

kgraefe commented 2 years ago

Works as expected with Pidgin 2.14.8 on Windows, hm.

kgraefe commented 2 years ago

The magic happens in this function: https://github.com/kgraefe/pidgin-hide-chat-on-join/blob/95e65fc99de4470051dc2716c26413ad86adc840/src/conversation_handler.c#L80

Could you add a log instruction (e.g. info("1\n"); with increasing numbers) before each of the goto show_conversation lines, rebuild and run again to find out, if the function is actually called and which route it takes?

kgraefe commented 2 years ago

I just tried to reproduce it with Pidgin 2.14.9 on Ubuntu 21.10 with no success. Please feel free to reopen if there you have more information.