mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 02:22:44 +02:00
Refactor RoomTimelineCellProviderProtocol to RoomTimelineCellProvider.
This commit is contained in:
@@ -30,7 +30,7 @@ class BubbleRoomTimelineStyle: RoomTimelineStyle {
|
||||
|
||||
let cellLayoutUpdater: RoomCellLayoutUpdater?
|
||||
|
||||
let cellProvider: RoomTimelineCellProviderProtocol
|
||||
let cellProvider: RoomTimelineCellProvider
|
||||
|
||||
let cellDecorator: RoomTimelineCellDecorator
|
||||
|
||||
|
||||
@@ -14,14 +14,16 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
#import "RoomTimelineCellProviderProtocol.h"
|
||||
#import "RoomTimelineCellProvider.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface PlainRoomTimelineCellProvider: NSObject<RoomTimelineCellProviderProtocol>
|
||||
@interface PlainRoomTimelineCellProvider: NSObject<RoomTimelineCellProvider>
|
||||
|
||||
- (NSDictionary<NSNumber*, Class>*)outgoingTextMessageCellsMapping;
|
||||
|
||||
- (NSDictionary<NSNumber*, Class>*)outgoingAttachmentCellsMapping;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -30,7 +30,7 @@ class PlainRoomTimelineStyle: RoomTimelineStyle {
|
||||
|
||||
let cellLayoutUpdater: RoomCellLayoutUpdater?
|
||||
|
||||
let cellProvider: RoomTimelineCellProviderProtocol
|
||||
let cellProvider: RoomTimelineCellProvider
|
||||
|
||||
let cellDecorator: RoomTimelineCellDecorator
|
||||
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/// Enables to register and provide room timeline cells
|
||||
@protocol RoomTimelineCellProviderProtocol <NSObject>
|
||||
@protocol RoomTimelineCellProvider <NSObject>
|
||||
|
||||
/// Register timeline cells for the given table view
|
||||
- (void)registerCellsForTableView:(UITableView*)tableView;
|
||||
@@ -30,7 +30,7 @@ protocol RoomTimelineStyle: Themable {
|
||||
var cellLayoutUpdater: RoomCellLayoutUpdater? { get }
|
||||
|
||||
/// Register and provide timeline cells
|
||||
var cellProvider: RoomTimelineCellProviderProtocol { get }
|
||||
var cellProvider: RoomTimelineCellProvider { get }
|
||||
|
||||
/// Handle cell decorations (reactions, read receipts, URL preview, …)
|
||||
var cellDecorator: RoomTimelineCellDecorator { get }
|
||||
|
||||
Reference in New Issue
Block a user