ars3niy / tdlib-purple

libpurple Telegram plugin using tdlib
Other
147 stars 29 forks source link

Lots of blank contacts on Pidgin's buddy list #107

Open Martinique opened 3 years ago

Martinique commented 3 years ago

See the screenshot below. I'm guessing those blanks at the top of my list are deleted accounts, which should be hidden, I suppose.

IIRC, telegram-purple had an option to automatically hide contacts that haven't been online for some time, so maybe that's why it didn't exhibit this issue.

tdlib-purple-problem

ars3niy commented 3 years ago

The reason they are in the contact list is because they are either in main chat list or archived chat list on the server. That's server telling us they should be shown. It probably means there's chat history on the server.

Don't you get a bunch of "deleted account" in the official client?

Martinique commented 3 years ago

Indeed I found some deleted ones as I scrolled far enough, but not that many. I wonder what the rest of the blanks in Pidgin are.

Anyway, since message history can be accessed through the menus in Pidgin, there's no point showing deleted accounts on the buddy list. Or perhaps they could be displayed below active accounts.

ars3niy commented 3 years ago

If you feel like checking, you can do this:

Martinique commented 3 years ago

Thanks! I'll try those.

ars3niy commented 3 years ago

they could be displayed below active accounts.

That's not possible I think, they are always sorted alphabetically. I'd like to propose moving them all to a different group or archiving them (not that there is support for automatically putting archived chats into a dedicated group – but there should be).

Martinique commented 3 years ago

How about naming them with a string starting with a Unicode symbol that gets sorted after alphanumerics and such regular characters? Anything would be better than an empty string.

I think telegram-purple did the auto-hiding by marking long absent contacts as offline, letting Pidgin's option hide them out of the way.

Martinique commented 3 years ago

The debug run was the second time I ran Pidgin with this plugin, and now instead of blanks those accounts were named "idXXXXXXX". Not any better for the average user, but I thought that was worth mentioning.

I examined all the blank entries in the log according to your instructions, and they were all userTypeDeleted. I'm pretty sure I've never even had any interactions with that many deleted accounts, as I also examined my message logs, and only a few of them have deleted their accounts, just like the official client indicated.

ars3niy commented 3 years ago

What about updateChatChatList for all those deleted accounts? Are they all chatListMain?

Martinique commented 3 years ago

Sorry about the wait; I got quarantined out there. I'm not familiar with the log format, so I'm not sure about data you need. Can you provide a command string?

guilhermecomum commented 1 year ago

I'm trying to use telegram with bitlbee and I'm getting the same problem, all my contacts are named with "idXXXXXX"