2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

showPeerHistory moved to Ui namespace

This commit is contained in:
John Preston
2015-12-13 14:36:08 +03:00
parent 6ec61d4ad6
commit f6fec9a619
15 changed files with 75 additions and 71 deletions

View File

@@ -1110,7 +1110,7 @@ void PeerLink::onClick(Qt::MouseButton button) const {
if (!peer()->asChannel()->isPublic() && !peer()->asChannel()->amIn()) {
Ui::showLayer(new InformBox(lang((peer()->isMegagroup()) ? lng_group_not_accessible : lng_channel_not_accessible)));
} else {
App::main()->showPeerHistory(peer()->id, ShowAtUnreadMsgId);
Ui::showPeerHistory(peer(), ShowAtUnreadMsgId);
}
} else {
App::main()->showPeerProfile(peer());
@@ -1124,13 +1124,13 @@ void MessageLink::onClick(Qt::MouseButton button) const {
if (current && current->history()->peer->id == peer()) {
App::main()->pushReplyReturn(current);
}
App::main()->showPeerHistory(peer(), msgid());
Ui::showPeerHistory(peer(), msgid());
}
}
void CommentsLink::onClick(Qt::MouseButton button) const {
if (button == Qt::LeftButton && App::main() && _item->history()->isChannel()) {
App::main()->showPeerHistory(_item->history()->peer->id, _item->id);
Ui::showPeerHistoryAtItem(_item);
}
}