Display new contacts at the top of the contact list

by initializing their latest message time with the current time
This commit is contained in:
Torsten Grote
2019-03-21 10:51:17 -03:00
parent f5ef87b34b
commit ce52a36db1
5 changed files with 58 additions and 5 deletions

View File

@@ -12,6 +12,12 @@ import javax.annotation.Nullable;
@NotNullByDefault
public interface MessageTracker {
/**
* Initializes the group count with zero messages,
* but uses the current time as latest message time for sorting.
*/
void initializeGroupCount(Transaction txn, GroupId g) throws DbException;
/**
* Gets the number of visible and unread messages in the group
* as well as the timestamp of the latest message