mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-10 04:50:02 +00:00
Updated the code to use the network offset time everywhere relevant (#1111)
* Updated the code to use the network offset time everywhere relevant * Updated the SnodeAPI.nowWithOffset to use @JvmStatic
This commit is contained in:
@@ -319,8 +319,8 @@ public class SignalServiceDataMessage {
|
||||
return this;
|
||||
}
|
||||
|
||||
public SignalServiceDataMessage build() {
|
||||
if (timestamp == 0) timestamp = System.currentTimeMillis();
|
||||
public SignalServiceDataMessage build(long fallbackTimestamp) {
|
||||
if (timestamp == 0) timestamp = fallbackTimestamp;
|
||||
// closedGroupUpdate is always null because we don't use SignalServiceDataMessage to send them (we use ClosedGroupUpdateMessageSendJob)
|
||||
return new SignalServiceDataMessage(timestamp, group, attachments, body, expiresInSeconds, expirationUpdate, profileKey, quote, sharedContacts, previews,
|
||||
null, syncTarget);
|
||||
|
Reference in New Issue
Block a user