fix: misspellings of comments inside the message display delegate file

This commit is contained in:
Seyed Mojtaba Hosseini Zeidabadi
2021-09-10 14:33:50 +04:30
parent bcd0558f6b
commit 2d8141a70b
@@ -144,7 +144,7 @@ public protocol MessagesDisplayDelegate: AnyObject {
/// - Returns: The LocationMessageSnapshotOptions instance with the options to customize map style.
func snapshotOptionsForLocation(message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> LocationMessageSnapshotOptions
/// Used to configure the annoation view of the map image on the given location message.
/// Used to configure the annotation view of the map image on the given location message.
///
/// - Parameters:
/// - message: A `MessageType` with a `MessageKind` case of `.location`.
@@ -178,7 +178,7 @@ public protocol MessagesDisplayDelegate: AnyObject {
/// Used to configure the audio cell UI:
/// 1. play button selected state;
/// 2. progresssView progress;
/// 2. progressView progress;
/// 3. durationLabel text;
///
/// - Parameters:
@@ -210,7 +210,7 @@ public protocol MessagesDisplayDelegate: AnyObject {
/// - Note:
/// The default value is computed like fallow:
/// 1. return the time as 0:ss if duration is up to 59 seconds (e.g. 0:03 means 0 minutes and 3 seconds)
/// 2. return the time as m:ss if duration is greater than 59 and lower than 3600 (e.g. 12:23 means 12 mintues and 23 seconds)
/// 2. return the time as m:ss if duration is greater than 59 and lower than 3600 (e.g. 12:23 means 12 minutes and 23 seconds)
/// 3. return the time as h:mm:ss for anything longer that 3600 seconds (e.g. 1:19:08 means 1 hour 19 minutes and 8 seconds)
func audioProgressTextFormat(_ duration: Float, for audioCell: AudioMessageCell, in messageCollectionView: MessagesCollectionView) -> String