tinode / ios

Tinodios: Tinode Messaging Client for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some users are missing in Find-local and New Group-members views

or-else opened this issue · comments

commented

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?

commented

Yes, as Alice.

Acknowledged. Will look into it tomorrow.

commented

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?

commented

Does not seem to be anything special. Here is Android and iOS running off the same server at the same time:
Simulator Screen Shot - iPhone Xʀ - 2019-05-30 at 08 29 01
Screenshot_1559230082

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.

commented

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.

commented

Just hit it again: user Xena is present in contacts but does not appear in Find
Simulator Screen Shot - iPhone Xʀ - 2019-07-18 at 18 03 51 Simulator Screen Shot - iPhone Xʀ - 2019-07-18 at 18 03 56

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.

commented

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.

commented

Looks like it's fixed.