Merge remote-tracking branch 'origin/3.0.0-beta' into sender-protocol

This commit is contained in:
Nathan Tannar
2019-02-19 00:07:50 -08:00
42 changed files with 1011 additions and 40 deletions
@@ -360,6 +360,16 @@ extension AdvancedExampleViewController: MessagesDisplayDelegate {
return LocationMessageSnapshotOptions(showsBuildings: true, showsPointsOfInterest: true, span: MKCoordinateSpan(latitudeDelta: 10, longitudeDelta: 10))
}
// MARK: - Audio Messages
func audioTintColor(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> UIColor {
return self.isFromCurrentSender(message: message) ? .white : UIColor(red: 15/255, green: 135/255, blue: 255/255, alpha: 1.0)
}
func configureAudioCell(_ cell: AudioMessageCell, message: MessageType) {
audioController.configureAudioCell(cell, message: message) // this is needed especily when the cell is reconfigure while is playing sound
}
}
// MARK: - MessagesLayoutDelegate