2014-10-02 15:02:47 +00:00
|
|
|
/*
|
|
|
|
Copyright 2014 OpenMarket Ltd
|
2017-03-09 10:50:12 +00:00
|
|
|
Copyright 2017 Vector Creations Ltd
|
2014-10-02 15:02:47 +00:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2015-03-31 13:09:17 +00:00
|
|
|
#import <MatrixKit/MatrixKit.h>
|
2014-10-02 15:02:47 +00:00
|
|
|
|
2016-02-10 09:59:48 +00:00
|
|
|
#import "RoomTitleView.h"
|
|
|
|
|
2016-04-15 07:43:56 +00:00
|
|
|
#import "RoomPreviewData.h"
|
2016-04-14 00:34:30 +00:00
|
|
|
|
2016-05-26 16:30:41 +00:00
|
|
|
#import "RoomParticipantsViewController.h"
|
|
|
|
|
2017-06-20 09:32:54 +00:00
|
|
|
#import "ContactsTableViewController.h"
|
|
|
|
|
2017-03-09 10:50:12 +00:00
|
|
|
#import "UIViewController+RiotSearch.h"
|
2015-12-30 14:15:08 +00:00
|
|
|
|
2017-06-20 09:32:54 +00:00
|
|
|
@interface RoomViewController : MXKRoomViewController <UISearchBarDelegate, UIGestureRecognizerDelegate, RoomTitleViewTapGestureDelegate, RoomParticipantsViewControllerDelegate, MXKRoomMemberDetailsViewControllerDelegate, ContactsTableViewControllerDelegate>
|
2016-02-10 09:59:48 +00:00
|
|
|
|
|
|
|
// The expanded header
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *expandedHeaderContainer;
|
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *expandedHeaderContainerHeightConstraint;
|
|
|
|
|
2016-04-14 00:34:30 +00:00
|
|
|
// The preview header
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *previewHeaderContainer;
|
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *previewHeaderContainerHeightConstraint;
|
|
|
|
|
2017-06-01 15:20:08 +00:00
|
|
|
// The jump to last unread banner
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *jumpToLastUnreadBannerContainer;
|
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *jumpToLastUnreadBannerContainerTopConstraint;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *jumpToLastUnreadButton;
|
|
|
|
@property (weak, nonatomic) IBOutlet UILabel *jumpToLastUnreadLabel;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *resetReadMarkerButton;
|
|
|
|
|
2016-02-10 09:59:48 +00:00
|
|
|
/**
|
2016-04-18 14:56:44 +00:00
|
|
|
Force the display of the expanded header.
|
|
|
|
The default value is NO: this expanded header is hidden on new instantiated RoomViewController object.
|
|
|
|
|
|
|
|
When this property is YES, the expanded header is forced each time the view controller appears.
|
2016-02-10 09:59:48 +00:00
|
|
|
*/
|
2016-04-18 14:56:44 +00:00
|
|
|
@property (nonatomic) BOOL showExpandedHeader;
|
2016-04-14 00:34:30 +00:00
|
|
|
|
2016-06-10 15:15:42 +00:00
|
|
|
/**
|
|
|
|
Preview data for a room invitation received by email, or a link to a room.
|
|
|
|
*/
|
|
|
|
@property (nonatomic, readonly) RoomPreviewData *roomPreviewData;
|
|
|
|
|
2018-01-16 22:49:04 +00:00
|
|
|
/**
|
|
|
|
Tell whether a badge must be added next to the chevron (back button) showing number of unread rooms.
|
|
|
|
YES by default.
|
|
|
|
*/
|
|
|
|
@property (nonatomic) BOOL showMissedDiscussionsBadge;
|
|
|
|
|
2016-04-14 00:34:30 +00:00
|
|
|
/**
|
2016-04-15 07:43:56 +00:00
|
|
|
Display the preview of a room that is unknown for the user.
|
|
|
|
|
|
|
|
This room can come from an email invitation link or a simple link to a room.
|
|
|
|
|
|
|
|
@param roomPreviewData the data for the room preview.
|
2016-04-14 00:34:30 +00:00
|
|
|
*/
|
2016-06-10 15:15:42 +00:00
|
|
|
- (void)displayRoomPreview:(RoomPreviewData*)roomPreviewData;
|
2015-01-30 17:47:43 +00:00
|
|
|
|
2017-06-01 15:20:08 +00:00
|
|
|
/**
|
|
|
|
Action used to handle some buttons.
|
|
|
|
*/
|
|
|
|
- (IBAction)onButtonPressed:(id)sender;
|
|
|
|
|
2014-10-02 15:02:47 +00:00
|
|
|
@end
|
|
|
|
|