Skip to content

Commit 9cfe050

Browse files
committed
remove all messages sent
1 parent b9bee86 commit 9cfe050

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

MatrixSDK/Data/Store/MXStore.h

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,18 @@
426426
*/
427427
- (void)storeOutgoingMessageForRoom:(nonnull NSString*)roomId outgoingMessage:(nonnull MXEvent*)outgoingMessage;
428428

429+
/**
430+
Remove all the messages sent before a specific timestamp in a room.
431+
The state events are not removed during this operation. We keep them in the timeline.
432+
This operation doesn't change the pagination token, and the flag indicating that the SDK has reached the end of pagination.
433+
434+
@param limitTs the timestamp from which the messages are kept.
435+
@param roomId the id of the room.
436+
437+
@return YES if at least one event has been removed.
438+
*/
439+
- (BOOL)removeAllMessagesSentBefore:(uint64_t)limitTs inRoom:(nonnull NSString *)roomId;
440+
429441
/**
430442
Remove all outgoing messages from a room.
431443
@@ -593,17 +605,4 @@
593605
success:(nonnull void (^)(NSString * _Nullable filterId))success
594606
failure:(nullable void (^)(NSError * _Nullable error))failure;
595607

596-
/**
597-
Remove all the messages sent before a specific timestamp in a room.
598-
The state events are not removed during this operation. We keep them in the timeline.
599-
This operation doesn't change the pagination token, and the flag indicating that the SDK has reached the end of pagination.
600-
601-
@param limitTs the timestamp from which the messages are kept.
602-
@param roomId the id of the room.
603-
604-
@return YES if at least one event has been removed.
605-
*/
606-
- (BOOL)removeAllMessagesSentBefore:(uint64_t)limitTs inRoom:(nonnull NSString *)roomId;
607-
608-
609608
@end

0 commit comments

Comments
 (0)