Relates #1840
@ -224,8 +224,7 @@ function openAndMigrateDatabase(filePath, key) {
keyDatabase(db, key);
switchToWAL(db);
migrateSchemaVersion(db);
// Because foreign key support is not enabled by default! // actually, Session does not care
// db.pragma('foreign_keys = ON');
db.pragma('secure_delete = ON');
return db;
} catch (error) {
@ -179,7 +179,11 @@ export const _getLeftPaneLists = (
directConversations.push(conversation);
}
if (unreadCount < 9 && conversation.unreadCount > 0) {
if (
unreadCount < 9 &&
conversation.unreadCount > 0 &&
conversation.currentNotificationSetting !== 'disabled'
) {
unreadCount += conversation.unreadCount;