wip
This commit is contained in:
parent
a60fae1a3a
commit
5f5e20b462
|
@ -3,10 +3,7 @@ import GRDB
|
||||||
import Martin
|
import Martin
|
||||||
import MartinOMEMO
|
import MartinOMEMO
|
||||||
|
|
||||||
!!! https: // xmpp.org/extensions/xep-0384.html#usecases-announcing
|
final class ClientMartinOMEMO {
|
||||||
|
|
||||||
final class ClientMartinOMEMO
|
|
||||||
{
|
|
||||||
let credentials: Credentials
|
let credentials: Credentials
|
||||||
|
|
||||||
init(_ credentials: Credentials) {
|
init(_ credentials: Credentials) {
|
||||||
|
|
|
@ -240,8 +240,8 @@ private extension Client {
|
||||||
client.modulesManager.register(RosterModule(rosterManager: roster))
|
client.modulesManager.register(RosterModule(rosterManager: roster))
|
||||||
|
|
||||||
client.modulesManager.register(PubSubModule())
|
client.modulesManager.register(PubSubModule())
|
||||||
client.modulesManager.register(PEPUserAvatarModule())
|
// client.modulesManager.register(PEPUserAvatarModule())
|
||||||
client.modulesManager.register(PEPBookmarksModule())
|
// client.modulesManager.register(PEPBookmarksModule())
|
||||||
|
|
||||||
client.modulesManager.register(MessageModule(chatManager: chat))
|
client.modulesManager.register(MessageModule(chatManager: chat))
|
||||||
client.modulesManager.register(MessageArchiveManagementModule())
|
client.modulesManager.register(MessageArchiveManagementModule())
|
||||||
|
|
|
@ -54,6 +54,7 @@ extension Message {
|
||||||
|
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
logIt(.error, "Error decoding omemo message: \(error)")
|
logIt(.error, "Error decoding omemo message: \(error)")
|
||||||
|
logIt(.error, "Message: \(martinMessage)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,12 +49,12 @@ extension OMEMOSession {
|
||||||
do {
|
do {
|
||||||
let sql =
|
let sql =
|
||||||
"""
|
"""
|
||||||
SELECT s.device_id
|
SELECT s.deviceId
|
||||||
FROM omemo_sessions s
|
FROM omemo_sessions s
|
||||||
LEFT JOIN omemo_identities i
|
LEFT JOIN omemo_identities i
|
||||||
ON s.account = i.account
|
ON s.account = i.account
|
||||||
AND s.name = i.name
|
AND s.name = i.name
|
||||||
AND s.device_id = i.device_id
|
AND s.deviceId = i.deviceId
|
||||||
WHERE s.account = :account
|
WHERE s.account = :account
|
||||||
AND s.name = :name
|
AND s.name = :name
|
||||||
AND ((i.status >= 0 AND i.status % 2 = 0) OR i.status IS NULL)
|
AND ((i.status >= 0 AND i.status % 2 = 0) OR i.status IS NULL)
|
||||||
|
|
|
@ -14,7 +14,7 @@ struct LoginScreen: View {
|
||||||
@FocusState private var focus: Field?
|
@FocusState private var focus: Field?
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
@State private var jidStr: String = "omemotest1@test.anal.company"
|
@State private var jidStr: String = "omemotest3@test.anal.company"
|
||||||
@State private var pass: String = "12345"
|
@State private var pass: String = "12345"
|
||||||
// @State private var jidStr: String = "nartest1@conversations.im"
|
// @State private var jidStr: String = "nartest1@conversations.im"
|
||||||
// @State private var pass: String = "nartest12345"
|
// @State private var pass: String = "nartest12345"
|
||||||
|
|
Loading…
Reference in a new issue