fix: changing the way received timestamp handling happens

This commit is contained in:
jubb
2021-03-23 15:56:15 +11:00
parent 1c1ce1424b
commit fad8cd5ba6
2 changed files with 2 additions and 7 deletions

View File

@@ -274,12 +274,7 @@ class Storage(context: Context, helper: SQLCipherOpenHelper) : Database(context,
}
override fun isMessageDuplicated(timestamp: Long, sender: String): Boolean {
val database = DatabaseFactory.getMmsSmsDatabase(context)
return if (sender.isEmpty()) {
database.getMessageForTimestamp(timestamp) != null
} else {
database.getMessageFor(timestamp, sender) != null
}
return getReceivedMessageTimestamps().contains(timestamp)
}
override fun setUserCount(group: Long, server: String, newValue: Int) {