MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / updateStatusText

Method updateStatusText

Telegram/SourceFiles/overview/overview_layout.cpp:828–849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826}
827
828void Video::updateStatusText() {
829 auto statusSize = int64();
830 if (_data->status == FileDownloadFailed || _data->status == FileUploadFailed) {
831 statusSize = Ui::FileStatusSizeFailed;
832 } else if (_data->uploading()) {
833 statusSize = _data->uploadingData->offset;
834 } else if (dataLoaded()) {
835 statusSize = Ui::FileStatusSizeLoaded;
836 } else {
837 statusSize = Ui::FileStatusSizeReady;
838 }
839 if (statusSize != _status.size()) {
840 auto status = statusSize;
841 auto size = _data->size;
842 if (statusSize >= 0 && statusSize < 0xFF000000LL) {
843 size = status;
844 status = Ui::FileStatusSizeReady;
845 }
846 _status.update(status, size, -1, 0);
847 _status.setSize(statusSize);
848 }
849}
850
851Voice::Voice(
852 not_null<Delegate*> delegate,

Callers

nothing calls this directly

Calls 15

IsStoppedOrStoppingFunction · 0.85
ShowPauseIconFunction · 0.85
externalPlayIdMethod · 0.80
isSeekingMethod · 0.80
instanceFunction · 0.50
AudioMsgIdClass · 0.50
uploadingMethod · 0.45
sizeMethod · 0.45
updateMethod · 0.45
setSizeMethod · 0.45
getStateMethod · 0.45
fullIdMethod · 0.45

Tested by

no test coverage detected