Clean
This commit is contained in:
parent
8ec81bc68d
commit
b0a0afdcc5
|
@ -36,7 +36,7 @@ typedef NS_ENUM(NSUInteger, OWSMessageGestureLocation) {
|
|||
imageView:(UIView *)imageView;
|
||||
|
||||
- (void)didTapAudioViewItem:(id<ConversationViewItem>)viewItem attachmentStream:(TSAttachmentStream *)attachmentStream;
|
||||
- (void)didPanAudioViewItem:(id<ConversationViewItem>)viewItem attachmentStream:(TSAttachmentStream *)attachmentStream currentTime:(NSTimeInterval)currentTime;
|
||||
- (void)didPanAudioViewItemToCurrentTime:(NSTimeInterval)currentTime;
|
||||
|
||||
- (void)didTapTruncatedTextMessage:(id<ConversationViewItem>)conversationItem;
|
||||
|
||||
|
|
|
@ -1541,7 +1541,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
[self.viewItem setAudioProgress:((CGFloat)currentTime) duration:self.viewItem.audioDurationSeconds];
|
||||
CGFloat progress = self.viewItem.audioProgressSeconds / self.viewItem.audioDurationSeconds;
|
||||
[voiceMessageView setProgress:progress];
|
||||
[self.delegate didPanAudioViewItem:self.viewItem attachmentStream:self.viewItem.attachmentStream currentTime:currentTime];
|
||||
[self.delegate didPanAudioViewItemToCurrentTime:currentTime];
|
||||
return;
|
||||
}
|
||||
default: return;
|
||||
|
|
|
@ -2455,7 +2455,7 @@ typedef enum : NSUInteger {
|
|||
[self.audioAttachmentPlayer setCurrentTime:viewItem.audioProgressSeconds];
|
||||
}
|
||||
|
||||
- (void)didPanAudioViewItem:(id<ConversationViewItem>)viewItem attachmentStream:(TSAttachmentStream *)attachmentStream currentTime:(NSTimeInterval)currentTime
|
||||
- (void)didPanAudioViewItemToCurrentTime:(NSTimeInterval)currentTime
|
||||
{
|
||||
[self.audioAttachmentPlayer setCurrentTime:currentTime];
|
||||
}
|
||||
|
|
|
@ -669,7 +669,7 @@ class MessageDetailViewController: OWSViewController, MediaGalleryDataSourceDele
|
|||
audioAttachmentPlayer.play()
|
||||
}
|
||||
|
||||
func didPanAudioViewItem(_ viewItem: ConversationViewItem, attachmentStream: TSAttachmentStream, currentTime: TimeInterval) {
|
||||
func didPanAudioViewItem(toCurrentTime currentTime: TimeInterval) {
|
||||
// TODO: Implement
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue