Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions protos/SignalService.proto
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ message DataMessage {
/**
* The timestamp of the last profile update.
* This is used to prioritize the correct profile info based on multiple and outdated incoming messages.
Note: this is in milliseconds.
* Note: this is in seconds.
*/
optional uint64 lastProfileUpdateMs = 3;
optional uint64 lastProfileUpdateSeconds = 3;
}

message OpenGroupInvitation {
Expand Down
2 changes: 1 addition & 1 deletion ts/receiver/contentMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ async function handleMessageRequestResponse(
profileUrl: messageRequestResponse.profile.profilePicture,
profileKey: messageRequestResponse.profileKey,
profileUpdatedAtSeconds: new Timestamp({
value: longOrNumberToNumber(messageRequestResponse.profile.lastProfileUpdateMs ?? 0),
value: longOrNumberToNumber(messageRequestResponse.profile.lastProfileUpdateSeconds ?? 0),
}).seconds(),
});
}
Expand Down
2 changes: 1 addition & 1 deletion ts/receiver/dataMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export async function handleSwarmDataMessage({
profileUrl: cleanDataMessage.profile.profilePicture,
profileKey: cleanDataMessage.profileKey,
profileUpdatedAtSeconds: new Timestamp({
value: cleanDataMessage.profile.lastProfileUpdateMs ?? 0,
value: cleanDataMessage.profile.lastProfileUpdateSeconds ?? 0,
}).seconds(),
});
}
Expand Down
2 changes: 1 addition & 1 deletion ts/receiver/queuedJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export async function handleMessageJob(
profileUrl: regularDataMessage.profile.profilePicture,
profileKey: regularDataMessage.profileKey,
profileUpdatedAtSeconds: new Timestamp({
value: regularDataMessage.profile.lastProfileUpdateMs ?? 0,
value: regularDataMessage.profile.lastProfileUpdateSeconds ?? 0,
}).seconds(),
});
}
Expand Down
2 changes: 1 addition & 1 deletion ts/types/message/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class OutgoingUserProfile {
if (this.displayName) {
profile.displayName = this.displayName;
}
profile.lastProfileUpdateMs = this.lastProfileUpdateTs.ms();
profile.lastProfileUpdateSeconds = this.lastProfileUpdateTs.seconds();

const picDetails = this.toProfilePicture();
if (picDetails.url && picDetails.key) {
Expand Down
Loading