Fix link previews not being treated as media message.

This commit is contained in:
Clark
2023-04-06 13:48:11 -04:00
committed by GitHub
parent a141fdaf7d
commit 57f490e5db

View File

@@ -71,7 +71,7 @@ object SignalServiceProtoUtil {
get() = hasGroupContext && groupV2.hasSignedGroupChange
val DataMessage.isMediaMessage: Boolean
get() = attachmentsList.isNotEmpty() || hasQuote() || contactList.isNotEmpty() || hasSticker() || bodyRangesList.isNotEmpty()
get() = attachmentsList.isNotEmpty() || hasQuote() || contactList.isNotEmpty() || hasSticker() || bodyRangesList.isNotEmpty() || previewList.isNotEmpty()
val DataMessage.isEndSession: Boolean
get() = flags and DataMessage.Flags.END_SESSION_VALUE != 0