telegram ui style
This commit is contained in:
1 parent
7db327c588
commit
f7e22364fd
9 files changed
+663
-476
No files matched your search
@@ -388,7 +388,7 @@ final class LumaOMEMO2Module: AbstractPEPModule, XmppModule {
|
||||
|
||||
public func decode(message: Message, from: BareJID, serverMsgId: String? = nil) -> DecryptionResult<Message, SignalError> {
|
||||
guard context != nil else { return .failure(.unknown) }
|
||||
guard let encryptedEl = message.findChild(name: "encrypted", xmlns: Self.XMLNS),
|
||||
guard let encryptedEl = message.firstChild(name: "encrypted", xmlns: Self.XMLNS),
|
||||
let headerEl = encryptedEl.findChild(name: "header"),
|
||||
let sid = UInt32(headerEl.getAttribute("sid") ?? "")
|
||||
else {
|
||||
|
||||
@@ -29,7 +29,7 @@ final class LumaSaslFailureModule: XmppModuleBase, XmppModule {
|
||||
|
||||
func process(stanza: Stanza) throws {
|
||||
let condition = stanza.findChild()?.name
|
||||
let text = stanza.findChild(name: "text")?.value
|
||||
let text = stanza.firstChild(name: "text")?.value
|
||||
lock.lock()
|
||||
stored = Failure(condition: condition, text: text)
|
||||
lock.unlock()
|
||||
|
||||
Reference in new issue
Block a user