EionRobb / purple-mattermost

A libpurple/Pidgin plugin for Mattermost
GNU General Public License v3.0
93 stars 23 forks source link

Room listing never finishes #110

Closed anse1 closed 5 years ago

anse1 commented 5 years ago

Bitlbee never shows the result of the room listing command. It looks like it is due to each team being counted twice on request, but counted once on response:

https://github.com/EionRobb/purple-mattermost/blob/4ee13ea82fe40eabe69acdb920873b23f625ddd8/libmattermost.c#L2575-L2586

https://github.com/EionRobb/purple-mattermost/blob/4ee13ea82fe40eabe69acdb920873b23f625ddd8/libmattermost.c#L2476-L2480

I.e. roomlist_set_in_progress is never cleared.

EionRobb commented 5 years ago

Thanks for the bug report and diagnosis :) Can you give that commit a try?