0

enter image description here I don't know if the sender and the non-sender are not distinguished and the speech bubble continues to appear on the left.

extension MessageVC: MessagesDisplayDelegate {
    func isFromCurrentSender(message: MessageType) -> Bool {
        return message.sender.senderId == currentSender.senderId
    }
}
extension MessageVC: MessagesDataSource {
    var currentSender: MessageKit.SenderType {
        return Sender(senderId: "id", displayName: "username")
    }
}

0 Answers0