Adjust last seen divider on read sync

Fixes #6273
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-02-21 22:33:16 -08:00
parent b43beaab75
commit bdc464193d
2 changed files with 2 additions and 0 deletions

View File

@ -524,6 +524,7 @@ public class MmsDatabase extends MessagingDatabase {
database.update(TABLE_NAME, values, ID_WHERE, new String[]{String.valueOf(id)}); database.update(TABLE_NAME, values, ID_WHERE, new String[]{String.valueOf(id)});
DatabaseFactory.getThreadDatabase(context).updateReadState(threadId); DatabaseFactory.getThreadDatabase(context).updateReadState(threadId);
DatabaseFactory.getThreadDatabase(context).setLastSeen(threadId);
notifyConversationListeners(threadId); notifyConversationListeners(threadId);
} }
} catch (InvalidNumberException e) { } catch (InvalidNumberException e) {

View File

@ -383,6 +383,7 @@ public class SmsDatabase extends MessagingDatabase {
database.update(TABLE_NAME, contentValues, ID_WHERE, new String[] {cursor.getLong(cursor.getColumnIndexOrThrow(ID)) + ""}); database.update(TABLE_NAME, contentValues, ID_WHERE, new String[] {cursor.getLong(cursor.getColumnIndexOrThrow(ID)) + ""});
DatabaseFactory.getThreadDatabase(context).updateReadState(threadId); DatabaseFactory.getThreadDatabase(context).updateReadState(threadId);
DatabaseFactory.getThreadDatabase(context).setLastSeen(threadId);
notifyConversationListeners(threadId); notifyConversationListeners(threadId);
} }
} catch (InvalidNumberException e) { } catch (InvalidNumberException e) {