mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Remove unnecessary context args in slide creation.
This commit is contained in:
committed by
Nicholas Tinsley
parent
a911a007d2
commit
b42dd5289b
@@ -5194,7 +5194,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
|
||||
readReceiptCount = 0
|
||||
}
|
||||
|
||||
val slideDeck = SlideDeck(context, MmsNotificationAttachment(status, messageSize))
|
||||
val slideDeck = SlideDeck(MmsNotificationAttachment(status, messageSize))
|
||||
val giftBadge: GiftBadge? = if (body != null && MessageTypes.isGiftBadge(mailbox)) {
|
||||
try {
|
||||
GiftBadge.parseFrom(Base64.decode(body))
|
||||
@@ -5389,7 +5389,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
|
||||
|
||||
val attachments = attachments.getAttachments(cursor)
|
||||
val quoteAttachments: List<Attachment> = attachments.filter { it.isQuote }
|
||||
val quoteDeck = SlideDeck(context, quoteAttachments)
|
||||
val quoteDeck = SlideDeck(quoteAttachments)
|
||||
|
||||
return if (quoteId > 0 && quoteAuthor > 0) {
|
||||
if (quoteText != null && (quoteMentions.isNotEmpty() || bodyRanges != null)) {
|
||||
@@ -5442,7 +5442,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
|
||||
.filterNot { it.isQuote }
|
||||
.sortedWith(DisplayOrderComparator())
|
||||
|
||||
return SlideDeck(context, messageAttachments)
|
||||
return SlideDeck(messageAttachments)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,6 +309,6 @@ public class MediaMmsMessageRecord extends MmsMessageRecord {
|
||||
|
||||
List<DatabaseAttachment> quoteAttachments = attachments.stream().filter(Attachment::isQuote).collect(Collectors.toList());
|
||||
|
||||
return quote.withAttachment(new SlideDeck(context, quoteAttachments));
|
||||
return quote.withAttachment(new SlideDeck(quoteAttachments));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user