mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-02 22:22:02 +00:00
Implement delivery receipts.
1) Support a "receipt" push message type. 2) Identify messages by timestamp. 3) Introduce a JobManager to handle the queue for network dependent jobs.
This commit is contained in:
@@ -25,6 +25,7 @@ public class SendReq extends MultimediaMessagePdu {
|
||||
private static final String TAG = "SendReq";
|
||||
private long databaseMessageId;
|
||||
private long messageBox;
|
||||
private long timestamp;
|
||||
|
||||
public SendReq() {
|
||||
super();
|
||||
@@ -90,11 +91,12 @@ public class SendReq extends MultimediaMessagePdu {
|
||||
super(headers, body);
|
||||
}
|
||||
|
||||
public SendReq(PduHeaders headers, PduBody body, long messageId, long messageBox)
|
||||
public SendReq(PduHeaders headers, PduBody body, long messageId, long messageBox, long timestamp)
|
||||
{
|
||||
super(headers, body);
|
||||
this.databaseMessageId = messageId;
|
||||
this.messageBox = messageBox;
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
public long getDatabaseMessageBox() {
|
||||
@@ -105,6 +107,10 @@ public class SendReq extends MultimediaMessagePdu {
|
||||
return databaseMessageId;
|
||||
}
|
||||
|
||||
public long getSentTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Bcc value.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user