mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Migrate quotes to have a separate quoteTargetContentType.
This commit is contained in:
@@ -1649,7 +1649,8 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
|
||||
quote.isOriginalMissing(),
|
||||
quote.getAttachment(),
|
||||
isStoryReaction(current) ? current.getBody() : null,
|
||||
quote.getQuoteType());
|
||||
quote.getQuoteType(),
|
||||
false);
|
||||
|
||||
quoteView.setWallpaperEnabled(hasWallpaper);
|
||||
quoteView.setVisibility(View.VISIBLE);
|
||||
|
||||
@@ -505,7 +505,7 @@ class ConversationRepository(
|
||||
}
|
||||
|
||||
if (messageRecord.isViewOnceMessage()) {
|
||||
val attachment = TombstoneAttachment(MediaUtil.VIEW_ONCE, true)
|
||||
val attachment = TombstoneAttachment.forQuote()
|
||||
slideDeck = SlideDeck()
|
||||
slideDeck.addSlide(MediaUtil.getSlideForAttachment(attachment))
|
||||
}
|
||||
|
||||
@@ -88,7 +88,8 @@ class V2ConversationItemMediaViewHolder<Model : MappingModel<Model>>(
|
||||
quote.isOriginalMissing,
|
||||
quote.attachment,
|
||||
if (conversationMessage.messageRecord.isStoryReaction()) conversationMessage.messageRecord.body else null,
|
||||
quote.quoteType
|
||||
quote.quoteType,
|
||||
false
|
||||
)
|
||||
|
||||
quoteView.setMessageType(
|
||||
|
||||
Reference in New Issue
Block a user