File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,9 @@ message DataMessage {
203
203
/**
204
204
* The timestamp of the last profile update.
205
205
* This is used to prioritize the correct profile info based on multiple and outdated incoming messages.
206
- Note: this is in milliseconds .
206
+ * Note: this is in seconds .
207
207
*/
208
- optional uint64 lastProfileUpdateMs = 3 ;
208
+ optional uint64 lastProfileUpdateSeconds = 3 ;
209
209
}
210
210
211
211
message OpenGroupInvitation {
Original file line number Diff line number Diff line change @@ -809,7 +809,7 @@ async function handleMessageRequestResponse(
809
809
profileUrl : messageRequestResponse . profile . profilePicture ,
810
810
profileKey : messageRequestResponse . profileKey ,
811
811
profileUpdatedAtSeconds : new Timestamp ( {
812
- value : longOrNumberToNumber ( messageRequestResponse . profile . lastProfileUpdateMs ?? 0 ) ,
812
+ value : longOrNumberToNumber ( messageRequestResponse . profile . lastProfileUpdateSeconds ?? 0 ) ,
813
813
} ) . seconds ( ) ,
814
814
} ) ;
815
815
}
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ export async function handleSwarmDataMessage({
235
235
profileUrl : cleanDataMessage . profile . profilePicture ,
236
236
profileKey : cleanDataMessage . profileKey ,
237
237
profileUpdatedAtSeconds : new Timestamp ( {
238
- value : cleanDataMessage . profile . lastProfileUpdateMs ?? 0 ,
238
+ value : cleanDataMessage . profile . lastProfileUpdateSeconds ?? 0 ,
239
239
} ) . seconds ( ) ,
240
240
} ) ;
241
241
}
Original file line number Diff line number Diff line change @@ -520,7 +520,7 @@ export async function handleMessageJob(
520
520
profileUrl : regularDataMessage . profile . profilePicture ,
521
521
profileKey : regularDataMessage . profileKey ,
522
522
profileUpdatedAtSeconds : new Timestamp ( {
523
- value : regularDataMessage . profile . lastProfileUpdateMs ?? 0 ,
523
+ value : regularDataMessage . profile . lastProfileUpdateSeconds ?? 0 ,
524
524
} ) . seconds ( ) ,
525
525
} ) ;
526
526
}
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ class OutgoingUserProfile {
150
150
if ( this . displayName ) {
151
151
profile . displayName = this . displayName ;
152
152
}
153
- profile . lastProfileUpdateMs = this . lastProfileUpdateTs . ms ( ) ;
153
+ profile . lastProfileUpdateSeconds = this . lastProfileUpdateTs . seconds ( ) ;
154
154
155
155
const picDetails = this . toProfilePicture ( ) ;
156
156
if ( picDetails . url && picDetails . key ) {
You can’t perform that action at this time.
0 commit comments