feat: use blinded message count for banner also

This commit is contained in:
0x330a 2023-05-08 09:18:10 +10:00
parent d4d4f81c36
commit d4f112e4b0

View File

@ -326,7 +326,7 @@ class HomeActivity : PassphraseRequiredActionBarActivity(),
} }
private fun setupMessageRequestsBanner() { private fun setupMessageRequestsBanner() {
val messageRequestCount = threadDb.unapprovedConversationCount val messageRequestCount = threadDb.unapprovedConversationCount + threadDb.blindedConversationList.use { it.count }
// Set up message requests // Set up message requests
if (messageRequestCount > 0 && !textSecurePreferences.hasHiddenMessageRequests()) { if (messageRequestCount > 0 && !textSecurePreferences.hasHiddenMessageRequests()) {
with(ViewMessageRequestBannerBinding.inflate(layoutInflater)) { with(ViewMessageRequestBannerBinding.inflate(layoutInflater)) {