2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

improved bad_msg_notification handle and local time shifts

This commit is contained in:
John Preston
2014-08-01 15:09:46 +04:00
parent 22e1a7b730
commit 0e031f042d
17 changed files with 381 additions and 95 deletions

View File

@@ -756,7 +756,10 @@ void MainWidget::showPeer(const PeerId &peerId, MsgId msgId, bool back, bool for
history.showPeer(peerId, msgId, force);
if (force || !selectingPeer()) {
if (profile) {
if (profile) profile->deleteLater();
if (profile) {
profile->deleteLater();
profile->rpcInvalidate();
}
profile = 0;
profileStack.clear();
if (!history.peer() || !history.peer()->id) {
@@ -811,7 +814,10 @@ void MainWidget::showPeerProfile(const PeerData *peer, bool back) {
profileStack.push_back(history.peer());
}
}
if (profile) profile->deleteLater();
if (profile) {
profile->deleteLater();
profile->rpcInvalidate();
}
profile = new ProfileWidget(this, peer);
_topBar.show();
resizeEvent(0);