channel messages in center, audio documents not indexed in documents, some bugs fixed

This commit is contained in:
John Preston
2015-09-13 20:27:29 +03:00
parent 02beb8631e
commit c3270d6b66
14 changed files with 395 additions and 227 deletions
+5 -1
View File
@@ -868,7 +868,11 @@ id(id), type(type), url(url), displayUrl(displayUrl), siteName(siteName), title(
void PeerLink::onClick(Qt::MouseButton button) const {
if (button == Qt::LeftButton && App::main()) {
App::main()->showPeerProfile(peer());
if (peer() && peer()->isChannel() && App::main()->historyPeer() != peer()) {
App::main()->showPeerHistory(peer()->id, ShowAtUnreadMsgId);
} else {
App::main()->showPeerProfile(peer());
}
}
}