Skip to content

Commit 6544622

Browse files
authored
Merge pull request #1916 from ably/materialisation/support-update-serial
Update `Message` to support `updateSerial`
2 parents 137a8a7 + 21e42ea commit 6544622

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ably.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,9 +2356,9 @@ export interface Message {
23562356
*/
23572357
updatedAt?: number;
23582358
/**
2359-
* If a `deletion` operation was applied to this message, this will be the timestamp the deletion occurred.
2359+
* The serial of the operation that updated this message.
23602360
*/
2361-
deletedAt?: number;
2361+
updateSerial?: string;
23622362
/**
23632363
* If this message resulted from an operation, this will contain the operation details.
23642364
*/

src/common/lib/types/message.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class Message {
341341
refSerial?: string;
342342
refType?: string;
343343
updatedAt?: number;
344-
deletedAt?: number;
344+
updateSerial?: string;
345345
operation?: API.Operation;
346346

347347
/**
@@ -378,7 +378,7 @@ class Message {
378378
refSerial: this.refSerial,
379379
refType: this.refType,
380380
updatedAt: this.updatedAt,
381-
deletedAt: this.deletedAt,
381+
updateSerial: this.updateSerial,
382382
operation: this.operation,
383383
encoding,
384384
data,
@@ -407,7 +407,7 @@ class Message {
407407
if (this.refSerial) result += '; refSerial=' + this.refSerial;
408408
if (this.refType) result += '; refType=' + this.refType;
409409
if (this.updatedAt) result += '; updatedAt=' + this.updatedAt;
410-
if (this.deletedAt) result += '; deletedAt=' + this.deletedAt;
410+
if (this.updateSerial) result += '; updateSerial=' + this.updateSerial;
411411
if (this.operation) result += '; operation=' + JSON.stringify(this.operation);
412412
result += ']';
413413
return result;

0 commit comments

Comments
 (0)