File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments