From 0c0e544d0466a87bec25f2ae9cefc8eaa05f75cc Mon Sep 17 00:00:00 2001 From: Steven Deutsch Date: Sun, 4 Nov 2018 17:08:46 -0600 Subject: [PATCH 1/3] Update CHANGELOG.md --- CHANGELOG.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b322ee96..d39ed49b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa ## [2.0.0](https://github.com/MessageKit/MessageKit/releases/tag/2.0.0) +### Added + +- **Breaking Change** Added new methods to simplify using of custom messages: `customCellSizeCalculator(for:at:in:)` for `MessagesLayoutDelegate` and `customCell(for:at:in:)` for `MessagesDataSource`. +[#879](https://github.com/MessageKit/MessageKit/pull/879) by [@realbonus](https://github.com/RealBonus) + ### Changed - Change acl of `handleGesture(touchLocation:)` in `MessageLabel` from internal to open. @@ -34,9 +39,6 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa - Added `additionalBottomInset` property that allows to adjust the bottom content inset automatically set on the messages collection view by the view controller. [#787](https://github.com/MessageKit/MessageKit/pull/787) by [@andreyvit](https://github.com/andreyvit) -- Added new methods to simplify using of custom messages: `customCellSizeCalculator(for:at:in:)` for `MessagesLayoutDelegate` and `customCell(for:at:in:)` for `MessagesDataSource`. -[#879](https://github.com/MessageKit/MessageKit/pull/879) by [@realbonus](https://github.com/RealBonus) - ### Fixed - **Breaking Change** Fixed typo of `scrollsToBottomOnKeybordBeginsEditing` to `scrollsToBottomOnKeyboardBeginsEditing`. From 5d2ac65a94b0f269d218d44eab2558a6b2944619 Mon Sep 17 00:00:00 2001 From: Tom Fox Date: Thu, 20 Dec 2018 18:17:49 +0000 Subject: [PATCH 2/3] add getting started section (#955) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 55b22a7b..491730b6 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,13 @@ To integrate MessageKit using Carthage, add the following to your `Cartfile`: github "MessageKit/MessageKit" ```` +## Getting Started + +Please have a look at the [Quick Start guide](https://github.com/MessageKit/MessageKit/blob/master/Documentation/QuickStart.md), the [FAQs](https://github.com/MessageKit/MessageKit/blob/master/Documentation/FAQs.md) and the [MessageInputBar docs](https://github.com/MessageKit/MessageKit/blob/master/Documentation/MessageInputBar.md). + +If you have any issues have a look at the [Example](https://github.com/MessageKit/MessageKit/tree/master/Example) project or write a question with the "messagekit" tag on [Stack Overflow](https://stackoverflow.com/questions/tagged/messagekit). + + ## Requirements - **iOS9** or later From 8baa8706ea9661ce050de1128f6fdf398ad8d218 Mon Sep 17 00:00:00 2001 From: jimijings11 <36637017+jimijings11@users.noreply.github.com> Date: Fri, 15 Feb 2019 21:01:33 +0100 Subject: [PATCH 3/3] Update MediaMessageCell.swift fixing reuse bug. --- Sources/Views/Cells/MediaMessageCell.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Views/Cells/MediaMessageCell.swift b/Sources/Views/Cells/MediaMessageCell.swift index 94f885e8..9380ccb5 100644 --- a/Sources/Views/Cells/MediaMessageCell.swift +++ b/Sources/Views/Cells/MediaMessageCell.swift @@ -55,6 +55,11 @@ open class MediaMessageCell: MessageContentCell { messageContainerView.addSubview(playButtonView) setupConstraints() } + + open override func prepareForReuse() { + super.prepareForReuse() + self.imageView.image = nil + } open override func configure(with message: MessageType, at indexPath: IndexPath, and messagesCollectionView: MessagesCollectionView) { super.configure(with: message, at: indexPath, and: messagesCollectionView)