mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Divide data/data_peer and remove from PCH.
This commit is contained in:
@@ -12,6 +12,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "media/media_clip_reader.h"
|
||||
#include "window/window_controller.h"
|
||||
#include "history/history_item_components.h"
|
||||
#include "data/data_peer.h"
|
||||
#include "data/data_user.h"
|
||||
#include "observer_peer.h"
|
||||
#include "mainwindow.h"
|
||||
#include "mainwidget.h"
|
||||
@@ -236,6 +238,9 @@ void showPeerProfile(const PeerId &peer) {
|
||||
}
|
||||
}
|
||||
}
|
||||
void showPeerProfile(const PeerData *peer) {
|
||||
showPeerProfile(peer->id);
|
||||
}
|
||||
|
||||
void showPeerProfile(not_null<const History*> history) {
|
||||
showPeerProfile(history->peer->id);
|
||||
@@ -261,6 +266,10 @@ void showPeerHistory(not_null<const History*> history, MsgId msgId) {
|
||||
showPeerHistory(history->peer->id, msgId);
|
||||
}
|
||||
|
||||
void showPeerHistory(const PeerData *peer, MsgId msgId) {
|
||||
showPeerHistory(peer->id, msgId);
|
||||
}
|
||||
|
||||
PeerData *getPeerForMouseAction() {
|
||||
return Messenger::Instance().ui_getPeerForMouseAction();
|
||||
}
|
||||
|
Reference in New Issue
Block a user