tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Chat user search doesn't work sometimes

Open ForNeVeR opened this issue 4 years ago • 30 comments

Steps to reproduce

  1. Open a supergroup chat
  2. Try to search for member (type @ and begin of member nickname)
  3. For some members in some chats, it won't work

For me, it doesn't work for a bot member (@<redacted>_bot) in supergroups with >700 and >4000 members. Other people report that they cannot find me (alongside the bot) in the same chats.

Expected behaviour

User name should still be suggested no matter the group size and other circumstances. It works in mobile clients, but doesn't work in tdesktop

Actual behaviour

Nothing is suggested.

Configuration

Operating system: Windows 10.

Version of Telegram Desktop: latest stable, 1.9.21.

Used theme: default, Night Mode is enabled.

ForNeVeR avatar Mar 18 '20 16:03 ForNeVeR

Can you see any other nicknames in the member popup above the "Write a message..." field at all?

jeffythedragonslayer avatar Mar 19 '20 05:03 jeffythedragonslayer

Yes, I can see some of them, it's just this bot I can't find.

The bot is named @dotnet_<smth>_bot, and there's a member named @dotnet<smthelse>.

When I type @dot, I can see @dotnet<smthelse> user, but not @dotnet_<smth>_bot. Even if I type almost fully @dotnet_<smth>_, then I see no completion.

The same bot user could be found in some other chats, but in this particular chat it couldn't be found. Interestingly enough, I can't find this particular user, @dotnet<smthelse>, in another chat, where this user exists (and I can see them via the chat member list, but still cannot find via @-completion).

ForNeVeR avatar Mar 19 '20 17:03 ForNeVeR

i don't know if this maybe server bug.

Aokromes avatar Jun 04 '20 09:06 Aokromes

I doubt it's a server bug. Mobile clients (which, presumably, use the same API) work well for the same cases when tdesktop doesn't. It's not only me who experiences this issue, there're other people reporting the same.

ForNeVeR avatar Jun 06 '20 06:06 ForNeVeR

Same issue

Azizjan-leo avatar Jun 06 '20 06:06 Azizjan-leo

Hey there!

This issue will be automatically closed in 7 days if there would be no activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Oct 23 '20 14:10 stale[bot]

Still reproduces for me in random chats, only in tdesktop.

ForNeVeR avatar Oct 24 '20 06:10 ForNeVeR

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Apr 22 '21 06:04 stale[bot]

Still reproduces for me in random chats, only in tdesktop. And is pretty annoying.

ForNeVeR avatar Apr 22 '21 06:04 ForNeVeR

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Oct 19 '21 07:10 stale[bot]

Still reproduces for me in random chats, only in tdesktop. And is pretty annoying.

ForNeVeR avatar Nov 23 '21 18:11 ForNeVeR

Hello, this is a serious problem.

I need to see all of the tags to me and my own comments and I can NEVER find them.

In one group I find 3 out of how many?

In another group, none.

Now I've lost important information because I can't find anyone who tagged me or my own comments.

This is on desktop and I tried to search in mobile b/c of what the OP said above, but it doesn't work either. It finds the last comment, that's it. How do I get to all the other comments above my last comment?

And what about all the people who wrote to me?

Please fix this.

ILoveSkilledCoders avatar Jan 20 '22 10:01 ILoveSkilledCoders

Still reproduces for me in random chats, only in tdesktop. And is pretty annoying.

Obviously they don't plan to fix it - sigh

ILoveSkilledCoders avatar Jan 20 '22 10:01 ILoveSkilledCoders

@ILoveSkilledCoders you can search for @ or #m, the search will return all the messages where you have been mentioned (replies + mentions by name/username). Not sure this is what you're looking for

RememberTheAir avatar Jan 20 '22 11:01 RememberTheAir

Oh, by the way, since nobody mentioned this yet - I think that the issue of users non popping out when you type the "@" to mention someone can be somehow fixed by opening the members list and scrolling a bit, to force the app to sync the members list. This is just a workaround of course

RememberTheAir avatar Jan 20 '22 11:01 RememberTheAir

@ILoveSkilledCoders you can search for @ or #m, the search will return all the messages where you have been mentioned (replies + mentions by name/username). Not sure this is what you're looking for

Yes, this is what I said above & no, it's not doing that for me. I've never used # though or with quotes, just @ without quotes.

Are you saying I need to use single quotes?

ILoveSkilledCoders avatar Jan 21 '22 06:01 ILoveSkilledCoders

Oh, by the way, since nobody mentioned this yet - I think that the issue of users non popping out when you type the "@" to mention someone can be somehow fixed by opening the members list and scrolling a bit, to force the app to sync the members list. This is just a workaround of course Nope, didn't work.

In fact, now there's less entries than there were yesterday LOL Only 2 & the most recent 2, not the 3 that were there yesterday & I posted a TON yesterday, like at least 8 times.

ILoveSkilledCoders avatar Jan 21 '22 07:01 ILoveSkilledCoders

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Jul 30 '22 15:07 stale[bot]

Still reproduces, the problem is not resolved.

ForNeVeR avatar Jul 30 '22 15:07 ForNeVeR

Yup, search still isn't working properly.

ILoveSkilledCoders avatar Aug 01 '22 03:08 ILoveSkilledCoders

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

github-actions[bot] avatar Jan 29 '23 02:01 github-actions[bot]

Just checked, it is still problematic.

ForNeVeR avatar Jan 29 '23 13:01 ForNeVeR

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

github-actions[bot] avatar Jul 30 '23 01:07 github-actions[bot]

I haven't tried in a while, but the other day I was searching for something by keywords (not a name) & I couldn't find it. This was in a group with just me & one other person.

ILoveSkilledCoders avatar Jul 30 '23 07:07 ILoveSkilledCoders

Still reproduces for me using the same steps, no changes.

ForNeVeR avatar Jul 30 '23 10:07 ForNeVeR

The likely reason is in this code snippet: https://github.com/telegramdesktop/tdesktop/blob/77c2e12ebc8cbbeed878056ccf660425b83e944b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp#L472-L474

I have several hypotheses about this.

  1. The number of users in the chats I participate in may be high (up to 7000 users), and one GetFullChat request may just not return all the users. Perhaps we should send some other request to get all the users, or even send a request to get a filtered list of users, if possible?
  2. There may be some internal limit on the amount of chat member data stored, and that request may easily overflow the limit. This would also explain why random users get lost from other views, such as the excluded members list.
  3. It's also possible that the check is wrong: currently, it will only send the data request if there's no chat participant info collected. But what if we have some data collected already, from some other means (such as users entering and leaving the chat)? In such case, a full data request will almost never be sent, and tdesktop will try to reuse the existing (not nearly full) data lists to seek for the user names to complete.

Once again, I'd like to emphasize that this works flawlessly in mobile clients, so it's possible to perform this operation. It is only broken (for me at least) in tdesktop.

ForNeVeR avatar Aug 27 '23 16:08 ForNeVeR

Still reproduces even in group with ~50 members

voed avatar Nov 18 '23 13:11 voed