Fixes for composer and DM

This commit is contained in:
Thomas Ricouard 2023-02-21 19:38:35 +01:00
parent bf49a4558c
commit ed9b2a37a7
2 changed files with 16 additions and 17 deletions

View file

@ -30,7 +30,6 @@ public struct ConversationDetailView: View {
public var body: some View {
ScrollViewReader { proxy in
ZStack(alignment: .bottom) {
ScrollView {
LazyVStack {
if viewModel.isLoadingMessages {
@ -45,9 +44,9 @@ public struct ConversationDetailView: View {
bottomAnchorView
}
.padding(.horizontal, .layoutPadding)
.padding(.bottom, 30)
}
.scrollDismissesKeyboard(.interactively)
.safeAreaInset(edge: .bottom) {
inputTextView
}
.onAppear {

View file

@ -202,7 +202,7 @@ public struct StatusEditorView: View {
dismiss()
NotificationCenter.default.post(name: NotificationsName.shareSheetClose,
object: nil)
if !viewModel.mode.isInShareExtension && !preferences.requestedReview {
if !viewModel.mode.isInShareExtension, !preferences.requestedReview, !ProcessInfo.processInfo.isiOSAppOnMac {
if let scene = UIApplication.shared.connectedScenes.first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene {
SKStoreReviewController.requestReview(in: scene)
}