zom / Zom-iOS-XMPP

THIS PROJECT IS NOW CLOSED. WE HAVE MOVED TO A NEW ZOM 2.0 MATRIX CORE. FOLLOW THE LINK!
https://github.com/zom/zom-ios-matrix
Mozilla Public License 2.0
37 stars 23 forks source link

Account signed in on multiple devices show up as two different contacts in Group Chat #510

Open tiffrobo opened 6 years ago

tiffrobo commented 6 years ago

One account on the staging server signed in on two devices: iPhone6 and iPad. (Account name-Jasmine)

Happening when both devices are online at the same time and chats are sent to a group

The messages only show twice in the chat view for the person sending the message. Other people in the group only see it once.

img_0274

Device: iPad, iPhone6 OS: 10.3.3 App Version: 114

chrisballinger commented 6 years ago

I think it's because technically, from the perspective of the room, there are two different occupants that just happen to share a JID. In "anonymous" rooms the occupants real JID is not exposed, so occupants are distinguised only by nickname, which is unique per occupant in the room. We only use non-anonymous rooms, but when you have two devices on the same JID, they still must have different room nicknames.

We'll have to re-think how we handle room occupants a bit.

N-Pex commented 6 years ago

Should be handled in 118.

tiffrobo commented 6 years ago

I just saw this issue in build 124. I think it's the same thing, except I'm only signed in on one device. However, the group members list shows me twice. Once as me(@staging.zom) and once with @conference.zom.im.

I've only seen it happen once with duplicate messages showing in the chat. This is a new group (created today). However, I do see myself listed twice in a few other group members' list, which are older groups. Once as me (@staging.zom) and once as @conference.zom.im

Here are the screenshots: img_3979

img_3982

Device: iPhone7 OS: 11.2.2 App version: 124