mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 20:27:47 +00:00
fix: outdated banner showing and updating on messages properly
This commit is contained in:
@@ -335,6 +335,17 @@ fun MessageReceiver.handleVisibleMessage(
|
||||
if (userPublicKey != messageSender && !isUserBlindedSender) {
|
||||
storage.setBlocksCommunityMessageRequests(recipient, message.blocksMessageRequests)
|
||||
}
|
||||
|
||||
// update the disappearing / legacy banner for the sender
|
||||
val disappearingState = when {
|
||||
proto.dataMessage.expireTimer > 0 && !proto.hasExpirationType() -> Recipient.DisappearingState.LEGACY
|
||||
else -> Recipient.DisappearingState.UPDATED
|
||||
}
|
||||
storage.updateDisappearingState(
|
||||
messageSender,
|
||||
threadID,
|
||||
disappearingState
|
||||
)
|
||||
}
|
||||
// Parse quote if needed
|
||||
var quoteModel: QuoteModel? = null
|
||||
|
Reference in New Issue
Block a user