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)
Tue, Oct 22, 12:07 PM
Unknown Object (File)
Tue, Oct 22, 11:24 AM
Unknown Object (File)
Mon, Oct 21, 9:25 PM
Unknown Object (File)
Sep 29 2024, 9:55 PM
Unknown Object (File)
Sep 28 2024, 3:57 PM
Unknown Object (File)
Sep 19 2024, 12:45 AM
Unknown Object (File)
Sep 19 2024, 12:45 AM
Unknown Object (File)
Sep 19 2024, 12:45 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