Some users are missing in Find-local and New Group-members views
or-else opened this issue · comments
iOS client shows just 4 results in Find and New Group members views while Android shows 6:
https://github.com/tinode/tindroid/blob/master/android-find-people.png
https://github.com/tinode/tindroid/blob/master/android-new-topic.png
Were you logged in as alice?
Yes, as Alice.
Acknowledged. Will look into it tomorrow.
There was a similar problem on Android: some users exist in the contacts database, but some only exist as P2P conversations, like Tino.
I tried to reproduce the problem today but couldn't: the contacts lists were identical on Android and iOS.
Was there anything special with your setup?
Okay. I cannot reproduce this with my local setup for some reason.
Are you using a remote server? Or a locally built one? I've been using the docker image.
I'm building the server from source. Let me see if if I can come up with steps to reproduce.
I'm still busy with tindroid/#38
Don't worry about it then. I'll build from source too.
I'll need to build the server from source soon anyway for adding push notifications.
Humm.. Still can't reproduce. Is it reproducible for you?
The local contacts list is read from Users table - if something's missing, we somehow fail to store a contact in the table. I'll reexamine the codepaths writing to the table.
Here are steps to reproduce:
Go to FindView, enter [basic:xena] in the search field, tap on Xena in Directory. Go to ChatList, see Xena there. Go to FindView and see that Xena is not there.
Thanks!
c3a649b should take care of it.
I'm going to keep this issue open for now in case we see this behavior again.
Looks like it's fixed.