mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
0.7.26.dev - some bugs fixed
This commit is contained in:
@@ -653,9 +653,9 @@ void Application::checkMapVersion() {
|
||||
psRegisterCustomScheme();
|
||||
if (Local::oldMapVersion()) {
|
||||
QString versionFeatures;
|
||||
if (DevChannel && Local::oldMapVersion() < 7025) {
|
||||
versionFeatures = QString::fromUtf8("\xe2\x80\x94 Add people to groups by username\n\xe2\x80\x94 Copy @username from profile context menu").replace('@', qsl("@") + QChar(0x200D));
|
||||
} else if (!DevChannel && Local::oldMapVersion() < 7026) {
|
||||
if (DevChannel && Local::oldMapVersion() < 7026) {
|
||||
versionFeatures = QString::fromUtf8("\xe2\x80\x94 Langs updated, some bugs fixed").replace('@', qsl("@") + QChar(0x200D));
|
||||
} else if (!DevChannel && Local::oldMapVersion() < 8000) {
|
||||
versionFeatures = lang(lng_new_version7026).trimmed();
|
||||
}
|
||||
if (!versionFeatures.isEmpty()) {
|
||||
|
@@ -17,8 +17,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
static const int32 AppVersion = 7025;
|
||||
static const wchar_t *AppVersionStr = L"0.7.25";
|
||||
static const int32 AppVersion = 7026;
|
||||
static const wchar_t *AppVersionStr = L"0.7.26";
|
||||
static const bool DevChannel = true;
|
||||
|
||||
static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)";
|
||||
|
@@ -712,11 +712,13 @@ void ProfileInner::contextMenuEvent(QContextMenuEvent *e) {
|
||||
_menu->deleteLater();
|
||||
_menu = 0;
|
||||
}
|
||||
if (!_phoneText.isEmpty()) {
|
||||
if (!_phoneText.isEmpty() || (_peerUser && !_peerUser->username.isEmpty())) {
|
||||
QRect info(_left + st::profilePhotoSize + st::profilePhoneLeft, st::profilePadding.top(), _width - st::profilePhotoSize - st::profilePhoneLeft, st::profilePhotoSize);
|
||||
if (info.contains(mapFromGlobal(e->globalPos()))) {
|
||||
_menu = new ContextMenu(this);
|
||||
_menu->addAction(lang(lng_profile_copy_phone), this, SLOT(onCopyPhone()))->setEnabled(true);
|
||||
if (!_phoneText.isEmpty()) {
|
||||
_menu->addAction(lang(lng_profile_copy_phone), this, SLOT(onCopyPhone()))->setEnabled(true);
|
||||
}
|
||||
if (_peerUser && !_peerUser->username.isEmpty()) {
|
||||
_menu->addAction(lang(lng_context_copy_mention), this, SLOT(onCopyUsername()))->setEnabled(true);
|
||||
}
|
||||
@@ -784,6 +786,7 @@ void ProfileInner::mediaOverviewUpdated(PeerData *peer) {
|
||||
if (peer == _peer) {
|
||||
resizeEvent(0);
|
||||
showAll();
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user