2020-10-14 17:18:58 +03:00
|
|
|
/**
|
|
|
|
* @copyright Copyright (c) 2020 Ivan Sein <ivan@nextcloud.com>
|
|
|
|
*
|
|
|
|
* @author Ivan Sein <ivan@nextcloud.com>
|
|
|
|
*
|
|
|
|
* @license GNU GPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2018-06-04 16:13:23 +03:00
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2022-04-04 20:25:29 +03:00
|
|
|
#import "NextcloudTalk-Swift.h"
|
|
|
|
|
2021-10-25 19:41:38 +03:00
|
|
|
#import "NCChatMessage.h"
|
|
|
|
|
2021-11-26 20:06:17 +03:00
|
|
|
static CGFloat kChatCellStatusViewHeight = 20.0;
|
|
|
|
static CGFloat kChatCellDateLabelWidth = 40.0;
|
|
|
|
static CGFloat kChatCellAvatarHeight = 30.0;
|
2020-04-08 17:25:30 +03:00
|
|
|
|
|
|
|
typedef enum ChatMessageDeliveryState {
|
|
|
|
ChatMessageDeliveryStateSent = 0,
|
2020-12-22 13:23:15 +03:00
|
|
|
ChatMessageDeliveryStateRead,
|
2020-04-15 19:32:55 +03:00
|
|
|
ChatMessageDeliveryStateSending,
|
2021-02-03 14:05:59 +03:00
|
|
|
ChatMessageDeliveryStateDeleting,
|
2020-04-15 19:32:55 +03:00
|
|
|
ChatMessageDeliveryStateFailed
|
2020-04-08 17:25:30 +03:00
|
|
|
} ChatMessageDeliveryState;
|
|
|
|
|
2021-10-25 19:41:38 +03:00
|
|
|
@protocol ChatTableViewCellDelegate <NSObject>
|
|
|
|
|
|
|
|
- (void)cellWantsToDisplayOptionsForMessageActor:(NCChatMessage *)message;
|
2022-04-13 11:42:00 +03:00
|
|
|
- (void)cellDidSelectedReaction:(NCChatReaction *)reaction forMessage:(NCChatMessage *)message;
|
2021-10-25 19:41:38 +03:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2018-06-04 16:13:23 +03:00
|
|
|
@interface ChatTableViewCell : UITableViewCell
|
|
|
|
|
|
|
|
@property (nonatomic, assign) NSInteger messageId;
|
2021-10-25 19:41:38 +03:00
|
|
|
@property (nonatomic, strong) NCChatMessage *message;
|
2018-06-04 16:13:23 +03:00
|
|
|
|
|
|
|
@end
|