Contact event is not reliable
Describe your environment
Please specify the following:
- Jami version: ffcfb494db2a331d2b50324579cee853f88a825fcd daemon dc66c7cbd2187bbcbc56643101dd48bc5cb85c01
- Device model: Pixel6 (emulator)
- Android version: API33
- What build you are using: build
What is the current bug behavior?
I can see two similar bugs when I am adding + accepting contact request.
- I don't see
Contact added
. - I do see
Contact added
but twice.
Case where everything works as expected
AccountService swarmLoaded account=e1e6e022c2bc0350 ADDED interaction=net.jami.model.ContactEvent@4596f4f
AccountService swarmLoaded account=e1e6e022c2bc0350 INVITED interaction=net.jami.model.ContactEvent@28d7ff8
ConversationAdapter add event=ADDED net.jami.model.ContactEvent@f62412b account=e1e6e022c2bc0350
ConversationAdapter add before: 0 []
ConversationAdapter add after:1 [net.jami.model.ContactEvent@f62412b]
ConversationAdapter add event=INVITED net.jami.model.ContactEvent@ef30988 account=e1e6e022c2bc0350
ConversationAdapter add before: 1 [net.jami.model.ContactEvent@f62412b]
ConversationAdapter add after:2 [net.jami.model.ContactEvent@ef30988, net.jami.model.ContactEvent@f62412b]
ConversationAdapter update event=INVITED net.jami.model.ContactEvent@ef30988 account=e1e6e022c2bc0350
ConversationAdapter update before: 2 [net.jami.model.ContactEvent@ef30988, net.jami.model.ContactEvent@f62412b]
ConversationAdapter update after: 2 [net.jami.model.ContactEvent@ef30988, net.jami.model.ContactEvent@f62412b]
ConversationAdapter update event=ADDED net.jami.model.ContactEvent@f62412b account=e1e6e022c2bc0350
ConversationAdapter update before: 2 [net.jami.model.ContactEvent@ef30988, net.jami.model.ContactEvent@f62412b]
ConversationAdapter update after: 2 [net.jami.model.ContactEvent@ef30988, net.jami.model.ContactEvent@f62412b]
AccountService swarmMessageReceived account=072b3615980b0ee1 ADDED interaction=net.jami.model.ContactEvent@67aa9a9
Contact added
Case where I don't see No signal displayed, nothing happens
Contact added
but twice
Case where I do see AccountService swarmLoaded 75c3a3b7ab7fbbe5 ADDED
AccountService swarmLoaded 75c3a3b7ab7fbbe5 INVITED
ConversationAdapter updateDataset event=2 l=[net.jami.model.ContactEvent@6d1a703, net.jami.model.ContactEvent@7793680] account=[75c3a3b7ab7fbbe5, 75c3a3b7ab7fbbe5]
ConversationAdapter updateDataset before: 0 []
ConversationAdapter updateDataset after: 2 [net.jami.model.ContactEvent@6d1a703, net.jami.model.ContactEvent@7793680]
ConversationAdapter updateDataset after: 2 [net.jami.model.ContactEvent@6d1a703, net.jami.model.ContactEvent@7793680]
ConversationAdapter add event=ADDED net.jami.model.ContactEvent@7793680 account=75c3a3b7ab7fbbe5
ConversationAdapter add before: 2 [net.jami.model.ContactEvent@6d1a703, net.jami.model.ContactEvent@7793680]
ConversationAdapter add after:3 [net.jami.model.ContactEvent@6d1a703, net.jami.model.ContactEvent@7793680, net.jami.model.ContactEvent@7793680]
ConversationAdapter add event=INVITED net.jami.model.ContactEvent@6d1a703 account=75c3a3b7ab7fbbe5
ConversationAdapter add before: 3 [net.jami.model.ContactEvent@6d1a703, net.jami.model.ContactEvent@7793680, net.jami.model.ContactEvent@7793680]
ConversationAdapter add after:4 [net.jami.model.ContactEvent@6d1a703, net.jami.model.ContactEvent@6d1a703, net.jami.model.ContactEvent@7793680, net.jami.model.ContactEvent@7793680]