Merge pull request '1.5-upgrades' (#272) from 1.5-upgrades into trunk
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Reviewed-on: #272
This commit is contained in:
commit
36cf8abc8c
|
@ -1 +1 @@
|
|||
2021-12-18-20-32-v1.5.1
|
||||
2021-12-19-15-59-v1.5.1-6-g95c3670
|
|
@ -1 +1 @@
|
|||
2021-12-19-01-32-v1.5.1
|
||||
2021-12-19-20-58-v1.5.1-6-g95c3670
|
|
@ -180,6 +180,13 @@ class FlwtchWorker(context: Context, parameters: WorkerParameters) :
|
|||
val pass = (a.get("pass") as? String) ?: ""
|
||||
Cwtch.loadProfiles(pass)
|
||||
}
|
||||
"ChangePassword" -> {
|
||||
val profile = (a.get("ProfileOnion") as? String) ?: ""
|
||||
val pass = (a.get("OldPass") as? String) ?: ""
|
||||
val passNew = (a.get("NewPass") as? String) ?: ""
|
||||
val passNew2 = (a.get("NewPassAgain") as? String) ?: ""
|
||||
Cwtch.changePassword(profile, pass, passNew, passNew2)
|
||||
}
|
||||
"GetMessage" -> {
|
||||
val profile = (a.get("ProfileOnion") as? String) ?: ""
|
||||
val conversation = a.getInt("conversation").toLong()
|
||||
|
|
|
@ -229,14 +229,9 @@ class CwtchNotifier {
|
|||
EnvironmentConfig.debugLog("new message from group from yourself - this should not happen");
|
||||
}
|
||||
break;
|
||||
case "SendMessageToPeerError":
|
||||
// Ignore dealt with by IndexedFailure
|
||||
break;
|
||||
case "SendMessageToGroupError":
|
||||
// Ignore dealt with by IndexedFailure
|
||||
break;
|
||||
case "IndexedFailure":
|
||||
var contact = profileCN.getProfile(data["ProfileOnion"])?.contactList.findContact(data["RemotePeer"]);
|
||||
var identifier = int.parse(data["ConversationID"]);
|
||||
var contact = profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(identifier);
|
||||
var idx = int.parse(data["Index"]);
|
||||
var key = contact?.getMessageKeyOrFail(contact.identifier, idx);
|
||||
if (key != null) {
|
||||
|
@ -315,21 +310,6 @@ class CwtchNotifier {
|
|||
});
|
||||
profileCN.getProfile(data["ProfileOnion"])?.contactList.resort();
|
||||
break;
|
||||
case "SetPeerAttribute":
|
||||
if (data["Key"] == "local.name") {
|
||||
if (profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"]) != null) {
|
||||
profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"])!.nickname = data["Data"];
|
||||
}
|
||||
} else if (data["Key"] == "local.archived") {
|
||||
if (profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"]) != null) {
|
||||
profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"])!.isArchived = data["Data"] == "true";
|
||||
}
|
||||
} else if (data["Key"] == "LastKnowSignature") {
|
||||
// group syncing information that isn't relevant to the UI...
|
||||
} else {
|
||||
EnvironmentConfig.debugLog("unhandled set peer attribute event: ${data['Key']}");
|
||||
}
|
||||
break;
|
||||
case "NewRetValMessageFromPeer":
|
||||
if (data["Path"] == "profile.name") {
|
||||
if (data["Data"].toString().trim().length > 0) {
|
||||
|
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 1.4.0+22
|
||||
version: 1.5.0+23
|
||||
|
||||
environment:
|
||||
sdk: ">=2.12.0 <3.0.0"
|
||||
|
|
Loading…
Reference in New Issue