wip
This commit is contained in:
parent
ca5e4b930c
commit
598b07661c
|
@ -112,5 +112,10 @@ struct ConversationScreen: View {
|
|||
ConversationTextInput(autoScroll: $autoScroll)
|
||||
.environmentObject(chatWrapper)
|
||||
}
|
||||
.onLoad {
|
||||
if chatWrapper.messages.isEmpty {
|
||||
chatWrapper.requestMAM()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ struct LoginScreen: View {
|
|||
)
|
||||
|
||||
Button {
|
||||
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
|
||||
router.showModal {
|
||||
LoadingScreen()
|
||||
}
|
||||
|
|
|
@ -289,7 +289,10 @@ private extension MonalChatWrapper {
|
|||
return Message(message)
|
||||
}
|
||||
.sorted { $0.timestamp > $1.timestamp }
|
||||
self.messages = messages
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.messages = messages
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
func toggleOmemo(_ new: Bool) {
|
||||
|
|
Loading…
Reference in a new issue