Messagekit: [Question] Grouping Messages

Created on 14 May 2018  路  4Comments  路  Source: MessageKit/MessageKit

Is there any property or any way to verify that the lasts sent messages are from the same user?. For example, I want to only display the name of a user at the first sent message of that "group" of messages or to only display the bubble tail on the last message of the "group". I would like to almost replicate the behaviour of iMessage. Thank you!
photo-2018-05-14-09-52-14

question

Most helpful comment

In an older (possible outdated branch) I did just that with the GroupMessageDataSource. You could follow with similar logic

https://github.com/MessageKit/MessageKit/commit/31480f28c08fcc8ea3a49e517d6738fbe1db4449#diff-81bad7f501caa7649f9acc2880b07456

All 4 comments

@adri4silva you can use isFromCurrentSender(message:) of MessagesDataSource

Sent with GitHawk

In an older (possible outdated branch) I did just that with the GroupMessageDataSource. You could follow with similar logic

https://github.com/MessageKit/MessageKit/commit/31480f28c08fcc8ea3a49e517d6738fbe1db4449#diff-81bad7f501caa7649f9acc2880b07456

Thanks @nathantannar4, that's what I was looking for 馃憤馃徑

Closing this out then, feel free to reopen if you have any more questions!

Sent with GitHawk

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asn111 picture asn111  路  3Comments

JulienLevallois picture JulienLevallois  路  4Comments

robertoferraz picture robertoferraz  路  3Comments

yspreen picture yspreen  路  3Comments

nitrag picture nitrag  路  3Comments