mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Improve conversation open speed.
Co-authored-by: Cody Henthorne <cody@signal.org>
This commit is contained in:
committed by
Cody Henthorne
parent
d3049a3433
commit
666218773c
@@ -1379,10 +1379,10 @@ open class RecipientDatabase(context: Context, databaseHelper: SignalDatabase) :
|
||||
return DeviceLastResetTime.newBuilder().build()
|
||||
}
|
||||
|
||||
fun setBadges(id: RecipientId, badges: List<Badge?>) {
|
||||
fun setBadges(id: RecipientId, badges: List<Badge>) {
|
||||
val badgeListBuilder = BadgeList.newBuilder()
|
||||
for (badge in badges) {
|
||||
badgeListBuilder.addBadges(toDatabaseBadge(badge!!))
|
||||
badgeListBuilder.addBadges(toDatabaseBadge(badge))
|
||||
}
|
||||
|
||||
val values = ContentValues(1).apply {
|
||||
@@ -1390,7 +1390,6 @@ open class RecipientDatabase(context: Context, databaseHelper: SignalDatabase) :
|
||||
}
|
||||
|
||||
if (update(id, values)) {
|
||||
ApplicationDependencies.getDatabaseObserver().notifyNotificationProfileObservers()
|
||||
ApplicationDependencies.getDatabaseObserver().notifyRecipientChanged(id)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user