2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

New profile photo edit by drag-n-drop. Animated photo button.

This commit is contained in:
John Preston
2016-05-27 13:57:11 +03:00
parent 329285a8a6
commit 3570a1cf91
26 changed files with 531 additions and 147 deletions

View File

@@ -898,8 +898,12 @@ void psSendToMenu(bool send, bool silent) {
void psUpdateOverlayed(QWidget *widget) {
}
QString psConvertFileUrl(const QString &url) {
return objc_convertFileUrl(url);
QString psConvertFileUrl(const QUrl &url) {
auto urlString = url.toLocalFile();
if (urlString.startsWith(qsl("/.file/id="))) {
return objc_convertFileUrl(urlString);
}
return urlString;
}
void psDownloadPathEnableAccess() {