Open Martinique opened 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?
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.
If you feel like checking, you can do this:
pidgin -d >&tdlib.log
, log in and quitgrep -A 7 updateNewChat tdlib.log |grep -B 3 -A 4 chatTypePrivate
type = chatTypePrivate {
section, thengrep -A 100 "updateUser " tdlib.log |grep -B 2 -A 98 "id = <userid>" |less
and check what's up with them (especially type)for chatid in $(grep -A 7 updateNewChat tdlib.log |grep -B 3 -A 4 chatTypePrivate |grep " id =" |grep -o '[0-9]*'); do grep -E -B 2 -A 5 "( id = $chatid| chat_id = $chatid)" tdlib.log |grep -E -A 7 "(updateNewChat {|updateChatChatList {)"; done
Thanks! I'll try those.
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).
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.
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.
What about updateChatChatList for all those deleted accounts? Are they all chatListMain?
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?
I'm trying to use telegram with bitlbee and I'm getting the same problem, all my contacts are named with "idXXXXXX"
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.