This commit is contained in:
fmodf 2024-09-13 18:16:26 +02:00
parent 09d3a6e606
commit edf1b8782c
2 changed files with 7 additions and 2 deletions

View file

@ -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,

View file

@ -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