Page MenuHomePhabricator

[native] Rename timestamp variables in `uploadFile(...)` for clarity
AbandonedPublic

Authored by atul on Aug 22 2022, 4:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 26 2024, 7:45 AM
Unknown Object (File)
May 26 2024, 7:45 AM
Unknown Object (File)
May 26 2024, 7:45 AM
Unknown Object (File)
Apr 8 2024, 1:49 AM
Unknown Object (File)
Apr 8 2024, 1:49 AM
Unknown Object (File)
Apr 8 2024, 1:49 AM
Unknown Object (File)
Mar 28 2024, 11:56 AM
Unknown Object (File)
Feb 24 2024, 7:47 AM
Subscribers

Details

Summary

Renamed the timestamp variable names to be clearer.

Also annotated totalTime and userTime with a comment to explain the difference between them.

Test Plan

This is a noop, no functional change.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Aug 22 2022, 4:36 PM
abosh added inline comments.
native/input/input-state-container.react.js
597

Is it initial media selection time or initial media send time? Because sendTime sounds clearer to me. We don't upload files once they're selected, we upload files once they've been sent (the send button has been clicked). I think mediaSentTimestamp is clearer (but this could be vague since the message hasn't been sent yet since the media has to be uploaded). It does match selection.sendTime though. Maybe something about the send button being clicked, or something.

606–612

Thoughts on using a multiline comment here?

610
This revision now requires changes to proceed.Aug 22 2022, 6:26 PM