Merge branch '1832-mirror-remote-self-destruct-timer' into '804-self-destructing-messages'

Mirror the contact's changes to the self-destruct timer

See merge request briar/briar!1312
This commit is contained in:
Torsten Grote
2020-12-04 14:59:15 +00:00
26 changed files with 706 additions and 80 deletions

View File

@@ -297,7 +297,8 @@ public class ConversationViewModel extends AndroidViewModel
return privateMessageFactory.createPrivateMessage(groupId,
timestamp, text, headers);
} else {
long timer = autoDeleteManager.getAutoDeleteTimer(txn, c);
long timer = autoDeleteManager.getAutoDeleteTimer(txn, c,
timestamp);
return privateMessageFactory.createPrivateMessage(groupId,
timestamp, text, headers, timer);
}

View File

@@ -171,7 +171,8 @@ class CreateGroupControllerImpl extends ContactSelectorControllerImpl
Contact contact = contactManager.getContact(txn, c);
long timestamp = conversationManager
.getTimestampForOutgoingMessage(txn, c);
long timer = autoDeleteManager.getAutoDeleteTimer(txn, c);
long timer = autoDeleteManager.getAutoDeleteTimer(txn, c,
timestamp);
contexts.add(new InvitationContext(contact, timestamp, timer));
} catch (NoSuchContactException e) {
// Continue