mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 15:09:31 +02:00
Unable to send message after filtering for room
- Fixed
This commit is contained in:
@@ -75,6 +75,23 @@ class AllChatsViewController: HomeViewController {
|
||||
|
||||
private var currentAlert: UIAlertController?
|
||||
|
||||
@IBOutlet private var toolbar: UIToolbar!
|
||||
private var isToolbarHidden: Bool = false {
|
||||
didSet {
|
||||
if isViewLoaded {
|
||||
toolbar.transform = isToolbarHidden ? CGAffineTransform(translationX: 0, y: 2 * toolbarHeight) : .identity
|
||||
self.view.layoutIfNeeded()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func setToolbarHidden(_ isHidden: Bool, animated: Bool) {
|
||||
UIView.animate(withDuration: animated ? 0.3 : 0) {
|
||||
self.isToolbarHidden = isHidden
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - SplitViewMasterViewControllerProtocol
|
||||
|
||||
// References on the currently selected room
|
||||
@@ -91,6 +108,8 @@ class AllChatsViewController: HomeViewController {
|
||||
|
||||
// Tell whether the onboarding screen is preparing.
|
||||
private(set) var isOnboardingInProgress: Bool = false
|
||||
|
||||
private var toolbarHeight: CGFloat = 0
|
||||
|
||||
// MARK: - Lifecycle
|
||||
|
||||
@@ -107,6 +126,8 @@ class AllChatsViewController: HomeViewController {
|
||||
recentsTableView.register(RecentsInvitesTableViewCell.nib, forCellReuseIdentifier: RecentsInvitesTableViewCell.reuseIdentifier)
|
||||
recentsTableView.contentInsetAdjustmentBehavior = .automatic
|
||||
|
||||
toolbarHeight = toolbar.frame.height
|
||||
|
||||
updateUI()
|
||||
|
||||
navigationItem.largeTitleDisplayMode = .automatic
|
||||
@@ -122,8 +143,7 @@ class AllChatsViewController: HomeViewController {
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
|
||||
self.navigationController?.isToolbarHidden = false
|
||||
self.navigationController?.toolbar.tintColor = ThemeService.shared().theme.colors.accent
|
||||
self.toolbar.tintColor = ThemeService.shared().theme.colors.accent
|
||||
if self.navigationItem.searchController == nil {
|
||||
self.navigationItem.searchController = searchController
|
||||
}
|
||||
@@ -164,12 +184,6 @@ class AllChatsViewController: HomeViewController {
|
||||
}
|
||||
}
|
||||
|
||||
override func viewWillDisappear(_ animated: Bool) {
|
||||
super.viewWillDisappear(animated)
|
||||
|
||||
self.navigationController?.isToolbarHidden = true
|
||||
}
|
||||
|
||||
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
||||
super.viewWillTransition(to: size, with: coordinator)
|
||||
|
||||
@@ -372,8 +386,8 @@ class AllChatsViewController: HomeViewController {
|
||||
|
||||
let scrollPosition = scrollPosition(of: scrollView)
|
||||
|
||||
if !self.recentsTableView.isDragging && scrollPosition == 0 && self.navigationController?.isToolbarHidden == true {
|
||||
self.navigationController?.setToolbarHidden(false, animated: true)
|
||||
if !self.recentsTableView.isDragging && scrollPosition == 0 && self.isToolbarHidden == true {
|
||||
self.setToolbarHidden(false, animated: true)
|
||||
}
|
||||
|
||||
guard self.recentsTableView.isDragging else {
|
||||
@@ -385,8 +399,8 @@ class AllChatsViewController: HomeViewController {
|
||||
}
|
||||
|
||||
let isToolBarHidden: Bool = scrollPosition - initialScrollPosition > 0
|
||||
if isToolBarHidden != self.navigationController?.isToolbarHidden {
|
||||
self.navigationController?.setToolbarHidden(isToolBarHidden, animated: true)
|
||||
if isToolBarHidden != self.isToolbarHidden {
|
||||
self.setToolbarHidden(isToolBarHidden, animated: true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -494,13 +508,17 @@ class AllChatsViewController: HomeViewController {
|
||||
}
|
||||
|
||||
private func updateToolbar(with menu: UIMenu) {
|
||||
self.navigationController?.isToolbarHidden = false
|
||||
guard isViewLoaded else {
|
||||
return
|
||||
}
|
||||
|
||||
self.isToolbarHidden = false
|
||||
self.update(with: ThemeService.shared().theme)
|
||||
self.setToolbarItems([
|
||||
self.toolbar.items = [
|
||||
UIBarButtonItem(image: Asset.Images.allChatsSpacesIcon.image, style: .done, target: self, action: #selector(self.showSpaceSelectorAction(sender: ))),
|
||||
UIBarButtonItem.flexibleSpace(),
|
||||
UIBarButtonItem(image: Asset.Images.allChatsEditIcon.image, menu: menu)
|
||||
], animated: true)
|
||||
]
|
||||
}
|
||||
|
||||
private func showCreateSpace(parentSpaceId: String?) {
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="AllChatsViewController" customModule="Element" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="recentsTableView" destination="orV-HH-88x" id="lgA-2k-pXJ"/>
|
||||
<outlet property="stickyHeadersBottomContainer" destination="EXH-mK-0eB" id="95Y-KP-bwF"/>
|
||||
<outlet property="stickyHeadersBottomContainerHeightConstraint" destination="SNq-Js-N7s" id="vom-iM-s6W"/>
|
||||
<outlet property="toolbar" destination="osO-1z-CZg" id="xRm-cJ-bNi"/>
|
||||
<outlet property="view" destination="iN0-l3-epB" id="NUQ-LI-M61"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
@@ -25,25 +24,24 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableView>
|
||||
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EXH-mK-0eB">
|
||||
<rect key="frame" x="0.0" y="667" width="375" height="0.0"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<accessibility key="accessibilityConfiguration" identifier="RecentsVCStickyHeadersBottomContainer"/>
|
||||
<toolbar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="osO-1z-CZg">
|
||||
<rect key="frame" x="0.0" y="623" width="375" height="44"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" id="SNq-Js-N7s"/>
|
||||
<constraint firstAttribute="height" constant="44" id="7k8-Ot-vpH"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<items/>
|
||||
</toolbar>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="4qf-KS-Fc9"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="orV-HH-88x" secondAttribute="trailing" id="3Np-64-AUe"/>
|
||||
<constraint firstItem="4qf-KS-Fc9" firstAttribute="bottom" secondItem="orV-HH-88x" secondAttribute="bottom" id="Bka-Zz-CEr"/>
|
||||
<constraint firstItem="EXH-mK-0eB" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="bottom" id="Kmg-aC-GOO"/>
|
||||
<constraint firstItem="EXH-mK-0eB" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="S3i-DW-PUB"/>
|
||||
<constraint firstAttribute="trailing" secondItem="EXH-mK-0eB" secondAttribute="trailing" id="bPP-yu-FTa"/>
|
||||
<constraint firstItem="osO-1z-CZg" firstAttribute="trailing" secondItem="4qf-KS-Fc9" secondAttribute="trailing" id="T2o-XM-BgN"/>
|
||||
<constraint firstItem="orV-HH-88x" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="dTn-zC-Axs"/>
|
||||
<constraint firstItem="osO-1z-CZg" firstAttribute="leading" secondItem="4qf-KS-Fc9" secondAttribute="leading" id="mq4-BS-JFN"/>
|
||||
<constraint firstItem="osO-1z-CZg" firstAttribute="bottom" secondItem="4qf-KS-Fc9" secondAttribute="bottom" id="ups-Ek-9Zs"/>
|
||||
<constraint firstItem="orV-HH-88x" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="xMc-15-1wS"/>
|
||||
<constraint firstItem="4qf-KS-Fc9" firstAttribute="bottom" secondItem="orV-HH-88x" secondAttribute="bottom" id="zCp-Ju-dvr"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="140" y="137.18140929535232"/>
|
||||
</view>
|
||||
|
||||
1
changelog.d/6755.bugfix
Normal file
1
changelog.d/6755.bugfix
Normal file
@@ -0,0 +1 @@
|
||||
App Layout: Unable to send message after filtering for room
|
||||
Reference in New Issue
Block a user