forked from cwtch.im/cwtch-ui
Update API
This commit is contained in:
parent
4e3bd696ed
commit
31b3d48f44
|
@ -1 +1 @@
|
||||||
v1.1.1-18-g300b68c-2021-08-27-20-42
|
v1.1.1-20-gc6a3a4e-2021-08-27-20-58
|
|
@ -298,7 +298,7 @@ class CwtchNotifier {
|
||||||
EnvironmentConfig.debugLog("unhandled set group attribute event: ${data['Key']}");
|
EnvironmentConfig.debugLog("unhandled set group attribute event: ${data['Key']}");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "SetContactAttribute":
|
case "SetPeerAttribute":
|
||||||
if (data["Key"] == "local.name") {
|
if (data["Key"] == "local.name") {
|
||||||
if (profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"]) != null) {
|
if (profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"]) != null) {
|
||||||
profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"])!.nickname = data["Data"];
|
profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"])!.nickname = data["Data"];
|
||||||
|
@ -308,7 +308,7 @@ class CwtchNotifier {
|
||||||
profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"])!.isArchived = data["Data"] == "true";
|
profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"])!.isArchived = data["Data"] == "true";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
EnvironmentConfig.debugLog("unhandled set group attribute event: ${data['Key']}");
|
EnvironmentConfig.debugLog("unhandled set peer attribute event: ${data['Key']}");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "NewRetValMessageFromPeer":
|
case "NewRetValMessageFromPeer":
|
||||||
|
|
Loading…
Reference in New Issue