contacts to provider model and appbus #15

Merged
dan merged 4 commits from newtrunk into trunk 2021-03-16 23:15:05 +00:00
Owner
No description provided.
dan reviewed 2021-03-15 23:58:52 +00:00
@ -27,0 +38,4 @@
break;
case "PeerStateChange":
ContactInfoState contact = profileCN.getProfile(data["ProfileOnion"]).contactList.getContact(data["RemotePeer"]);
if (contact == null) {
Owner

double check libcwtch-go. i believe I check there in PeerStateChange if it's a new peer by libcwtch-go's knowledge and change it to a NewPeer event.

Doing it here is touble since not enoguh info is supplied (like pic, blocked/approved state, etc)

double check libcwtch-go. i believe I check there in PeerStateChange if it's a new peer by libcwtch-go's knowledge and change it to a NewPeer event. Doing it here is touble since not enoguh info is supplied (like pic, blocked/approved state, etc)
@ -101,3 +101,3 @@
_receivePort.listen((message) {
var env = jsonDecode(message);
cwtchNotifier.handleMessage(env["EventType"], env["Data"]);
if (env["EventType"] != null) {//check if env["EventType"] exists
Owner

proly move this set of ifs into cwtchNotifier handleMessage

cus the other comment is the need to dup this code into the gomobile module?

proly move this set of ifs into cwtchNotifier handleMessage cus the other comment is the need to dup this code into the gomobile module?
dan merged commit 209f03ab6a into trunk 2021-03-16 23:15:05 +00:00
Sign in to join this conversation.
No description provided.