SystemMessageTableViewCell.h 1008 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. #import <UIKit/UIKit.h>
  6. #import "ChatTableViewCell.h"
  7. #import "MessageBodyTextView.h"
  8. #import "NCChatMessage.h"
  9. static CGFloat kSystemMessageCellMinimumHeight = 30.0;
  10. static NSString *SystemMessageCellIdentifier = @"SystemMessageCellIdentifier";
  11. static NSString *InvisibleSystemMessageCellIdentifier = @"InvisibleSystemMessageCellIdentifier";
  12. @protocol SystemMessageTableViewCellDelegate <ChatTableViewCellDelegate>
  13. - (void)cellWantsToCollapseMessagesWithMessage:(NCChatMessage *)message;
  14. @end
  15. @interface SystemMessageTableViewCell : ChatTableViewCell
  16. @property (nonatomic, weak) id<SystemMessageTableViewCellDelegate> delegate;
  17. @property (nonatomic, strong) UILabel *dateLabel;
  18. @property (nonatomic, strong) MessageBodyTextView *bodyTextView;
  19. @property (nonatomic, strong) UIButton *collapseButton;
  20. - (void)setupForMessage:(NCChatMessage *)message;
  21. @end