From edf1b8782c7768dc8da9953bba4575825e128f21 Mon Sep 17 00:00:00 2001 From: fmodf Date: Fri, 13 Sep 2024 18:16:26 +0200 Subject: [PATCH] wip --- ConversationsClassic/AppData/Store/AttachmentsStore.swift | 3 +++ ConversationsClassic/View/Entering/LoginScreen.swift | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ConversationsClassic/AppData/Store/AttachmentsStore.swift b/ConversationsClassic/AppData/Store/AttachmentsStore.swift index 20233c3..1a124e9 100644 --- a/ConversationsClassic/AppData/Store/AttachmentsStore.swift +++ b/ConversationsClassic/AppData/Store/AttachmentsStore.swift @@ -62,6 +62,7 @@ extension AttachmentsStore { var message = Message.blank message.from = roster.bareJid message.to = roster.contactBareJid + message.secure = true switch item.type { case .photo: @@ -110,6 +111,7 @@ extension AttachmentsStore { var message = Message.blank message.from = roster.bareJid message.to = roster.contactBareJid + message.secure = true let localName: String let msgType: AttachmentType @@ -175,6 +177,7 @@ extension AttachmentsStore { var message = Message.blank message.from = roster.bareJid message.to = roster.contactBareJid + message.secure = true message.contentType = .attachment( Attachment( type: localName.attachmentType, diff --git a/ConversationsClassic/View/Entering/LoginScreen.swift b/ConversationsClassic/View/Entering/LoginScreen.swift index 596bd1c..90c2321 100644 --- a/ConversationsClassic/View/Entering/LoginScreen.swift +++ b/ConversationsClassic/View/Entering/LoginScreen.swift @@ -14,8 +14,10 @@ struct LoginScreen: View { @FocusState private var focus: Field? #if DEBUG - @State private var jidStr: String = "nartest1@conversations.im" - @State private var pass: String = "nartest12345" + @State private var jidStr: String = "omemotest1@test.anal.company" + @State private var pass: String = "12345" + // @State private var jidStr: String = "nartest1@conversations.im" + // @State private var pass: String = "nartest12345" // @State private var jidStr: String = "test1@test.anal.company" // @State private var pass: String = "12345" #else