Compare commits
9 Commits
master
...
work/tobia
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d51d43709 | ||
|
|
ded0a8a74e | ||
|
|
2a2ee9adb7 | ||
|
|
f696a0bb37 | ||
|
|
a351f988ed | ||
|
|
ce5b527be9 | ||
|
|
fbf39ffcf5 | ||
|
|
9498f76bfb | ||
|
|
c8eb62989c |
@@ -4,3 +4,4 @@
|
|||||||
[BlueprintSettings]
|
[BlueprintSettings]
|
||||||
kde/applications/neochat.packageAppx=True
|
kde/applications/neochat.packageAppx=True
|
||||||
libs/qt.qtMajorVersion=6
|
libs/qt.qtMajorVersion=6
|
||||||
|
qt-libs/libquotient.version=rust
|
||||||
|
|||||||
@@ -4,6 +4,17 @@
|
|||||||
"runtime": "org.kde.Platform",
|
"runtime": "org.kde.Platform",
|
||||||
"runtime-version": "6.10",
|
"runtime-version": "6.10",
|
||||||
"sdk": "org.kde.Sdk",
|
"sdk": "org.kde.Sdk",
|
||||||
|
"sdk-extensions" : [
|
||||||
|
"org.freedesktop.Sdk.Extension.rust-stable"
|
||||||
|
],
|
||||||
|
"build-options": {
|
||||||
|
"append-path": "/usr/lib/sdk/rust-stable/bin",
|
||||||
|
"env": {
|
||||||
|
"RUST_BACKTRACE": "1",
|
||||||
|
"CARGO_NET_OFFLINE": "true",
|
||||||
|
"RUSTFLAGS": "--remap-path-prefix =../"
|
||||||
|
}
|
||||||
|
},
|
||||||
"command": "neochat",
|
"command": "neochat",
|
||||||
"tags": [
|
"tags": [
|
||||||
"nightly"
|
"nightly"
|
||||||
@@ -61,26 +72,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "olm",
|
|
||||||
"buildsystem": "cmake-ninja",
|
|
||||||
"config-opts": [
|
|
||||||
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
|
|
||||||
"-DOLM_TESTS=OFF"
|
|
||||||
],
|
|
||||||
"sources": [
|
|
||||||
{
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://gitlab.matrix.org/matrix-org/olm.git",
|
|
||||||
"tag": "3.2.16",
|
|
||||||
"x-checker-data": {
|
|
||||||
"type": "git",
|
|
||||||
"tag-pattern": "^([\\d.]+)$"
|
|
||||||
},
|
|
||||||
"commit": "7e0c8277032e40308987257b711b38af8d77cc69"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "libsecret",
|
"name": "libsecret",
|
||||||
"buildsystem": "meson",
|
"buildsystem": "meson",
|
||||||
@@ -129,21 +120,37 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "libQuotient",
|
"name": "corrosion",
|
||||||
"buildsystem": "cmake-ninja",
|
"buildsystem": "cmake-ninja",
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/quotient-im/libQuotient.git",
|
"url": "https://github.com/corrosion-rs/corrosion",
|
||||||
"branch": "dev",
|
"tag": "v0.6.0"
|
||||||
"disable-submodules": true
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "libQuotient",
|
||||||
|
"buildsystem": "cmake-ninja",
|
||||||
|
"sources": [
|
||||||
|
"flatpak/generated-sources.json",
|
||||||
|
{
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/quotient-im/libquotient",
|
||||||
|
"branch": "tobias/rust-sdk-crypto"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"config-opts": [
|
"config-opts": [
|
||||||
"-DBUILD_WITH_QT6=ON",
|
"-DBUILD_WITH_QT6=ON",
|
||||||
"-DQuotient_ENABLE_E2EE=ON",
|
"-DQuotient_ENABLE_E2EE=ON",
|
||||||
"-DBUILD_TESTING=OFF"
|
"-DBUILD_TESTING=OFF"
|
||||||
]
|
],
|
||||||
|
"build-options": {
|
||||||
|
"env": {
|
||||||
|
"CARGO_HOME": "/run/build/libQuotient/cargo"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "cmark",
|
"name": "cmark",
|
||||||
|
|||||||
3895
flatpak/generated-sources.json
Normal file
3895
flatpak/generated-sources.json
Normal file
File diff suppressed because it is too large
Load Diff
2
flatpak/generated-sources.json.license
Normal file
2
flatpak/generated-sources.json.license
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
SPDX-FileCopyrightText: none
|
||||||
|
SPDX-License-Identifier: CC0-1.0
|
||||||
@@ -41,10 +41,18 @@ slots:
|
|||||||
bus: session
|
bus: session
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
olm:
|
rustup:
|
||||||
source: https://gitlab.matrix.org/matrix-org/olm.git
|
plugin: rust
|
||||||
|
source: .
|
||||||
|
rust-channel: "1.76"
|
||||||
|
override-build: ""
|
||||||
|
override-prime: ""
|
||||||
|
|
||||||
|
corrosion:
|
||||||
|
after: [rustup]
|
||||||
|
source: https://github.com/corrosion-rs/corrosion.git
|
||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-tag: '3.2.16'
|
source-tag: 'v0.6.0'
|
||||||
plugin: cmake
|
plugin: cmake
|
||||||
cmake-parameters:
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
@@ -98,7 +106,7 @@ parts:
|
|||||||
|
|
||||||
libquotient:
|
libquotient:
|
||||||
after:
|
after:
|
||||||
- olm
|
- corrosion
|
||||||
- qtkeychain
|
- qtkeychain
|
||||||
source: https://github.com/quotient-im/libQuotient.git
|
source: https://github.com/quotient-im/libQuotient.git
|
||||||
source-tag: 0.9.2
|
source-tag: 0.9.2
|
||||||
@@ -114,8 +122,6 @@ parts:
|
|||||||
- -DCMAKE_INSTALL_PREFIX=/usr
|
- -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
- -DBUILD_TESTING=OFF
|
- -DBUILD_TESTING=OFF
|
||||||
- -DQuotient_ENABLE_E2EE=ON
|
|
||||||
- -DBUILD_WITH_QT6=ON
|
|
||||||
prime:
|
prime:
|
||||||
- -usr/include
|
- -usr/include
|
||||||
- -usr/lib/*/pkgconfig
|
- -usr/lib/*/pkgconfig
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ Kirigami.Page {
|
|||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
name: "waitingForVerification"
|
name: "waitingForVerification"
|
||||||
when: root.session.state === KeyVerificationSession.WAITINGFORVERIFICATION
|
when: root.session.state === KeyVerificationSession.TRANSITIONED && root.session.sasState === KeyVerificationSession.SASKEYSEXCHANGED
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
stateLoader.sourceComponent: emojiSas
|
stateLoader.sourceComponent: emojiSas
|
||||||
}
|
}
|
||||||
@@ -78,7 +78,15 @@ Kirigami.Page {
|
|||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
name: "done"
|
name: "done"
|
||||||
when: root.session.state === KeyVerificationSession.DONE
|
when: root.session.sasState === KeyVerificationSession.SASDONE
|
||||||
|
PropertyChanges {
|
||||||
|
target: stateLoader
|
||||||
|
sourceComponent: message
|
||||||
|
}
|
||||||
|
},
|
||||||
|
State {
|
||||||
|
name: "confirmed"
|
||||||
|
when: root.session.state === KeyVerificationSession.TRANSITIONED && root.session.sasState === KeyVerificationSession.SASCONFIRMED
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
stateLoader.sourceComponent: message
|
stateLoader.sourceComponent: message
|
||||||
}
|
}
|
||||||
@@ -141,6 +149,14 @@ Kirigami.Page {
|
|||||||
return "security-medium-symbolic";
|
return "security-medium-symbolic";
|
||||||
case KeyVerificationSession.DONE:
|
case KeyVerificationSession.DONE:
|
||||||
return "security-high";
|
return "security-high";
|
||||||
|
case KeyVerificationSession.TRANSITIONED: {
|
||||||
|
if (root.session.sasState === KeyVerificationSession.SASCONFIRMED) {
|
||||||
|
return "security-high";
|
||||||
|
}
|
||||||
|
if (root.session.sasState === KeyVerificationSession.SASDONE) {
|
||||||
|
return "security-high";
|
||||||
|
}
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
@@ -149,16 +165,38 @@ Kirigami.Page {
|
|||||||
switch (root.session.state) {
|
switch (root.session.state) {
|
||||||
case KeyVerificationSession.WAITINGFORREADY:
|
case KeyVerificationSession.WAITINGFORREADY:
|
||||||
return i18n("Waiting for device to accept verification.");
|
return i18n("Waiting for device to accept verification.");
|
||||||
case KeyVerificationSession.INCOMING:
|
case KeyVerificationSession.INCOMING: {
|
||||||
return i18n("Incoming key verification request from device **%1**", root.session.remoteDeviceId);
|
if (root.session.remoteDeviceId.length > 0) {
|
||||||
|
return i18n("Incoming key verification request from device **%1**", root.session.remoteDeviceId);
|
||||||
|
} else {
|
||||||
|
return i18n("Incoming key verification request from **%1**", root.session.remoteUserId);
|
||||||
|
}
|
||||||
|
}
|
||||||
case KeyVerificationSession.WAITINGFORMAC:
|
case KeyVerificationSession.WAITINGFORMAC:
|
||||||
return i18n("Waiting for other party to send us keys.");
|
return i18n("Waiting for other party to send us keys.");
|
||||||
case KeyVerificationSession.WAITINGFORKEY:
|
case KeyVerificationSession.WAITINGFORKEY:
|
||||||
return i18n("Waiting for other party to confirm our keys.");
|
return i18n("Waiting for other party to confirm our keys.");
|
||||||
case KeyVerificationSession.WAITINGFORACCEPT:
|
case KeyVerificationSession.WAITINGFORACCEPT:
|
||||||
return i18n("Waiting for other party to verify.");
|
return i18n("Waiting for other party to verify.");
|
||||||
case KeyVerificationSession.DONE:
|
case KeyVerificationSession.DONE: {
|
||||||
return i18n("Successfully verified device **%1**", root.session.remoteDeviceId);
|
if (root.session.remoteDeviceId.length > 0) {
|
||||||
|
return i18n("Successfully verified device **%1**", root.session.remoteDeviceId)
|
||||||
|
} else {
|
||||||
|
return i18nc("@info", "Successfully verified **%1**", root.session.remoteUserId)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case KeyVerificationSession.TRANSITIONED: {
|
||||||
|
if (root.session.sasState === KeyVerificationSession.SASCONFIRMED) {
|
||||||
|
return i18nc("@info", "Waiting for remote party to confirm verification");
|
||||||
|
}
|
||||||
|
if (root.session.sasState === KeyVerificationSession.SASDONE) {
|
||||||
|
if (root.session.remoteDeviceId.length > 0) {
|
||||||
|
return i18n("Successfully verified device **%1**", root.session.remoteDeviceId)
|
||||||
|
} else {
|
||||||
|
return i18nc("@info", "Successfully verified **%1**", root.session.remoteUserId)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user