mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Remove history_item and layout from pch.
Also move some code to separate modules. Also create history item views by Window::Controller.
This commit is contained in:
@@ -82,16 +82,10 @@ private:
|
||||
SingleTimer _inputCheckTimer;
|
||||
|
||||
struct QueuedNotification {
|
||||
QueuedNotification(HistoryItem *item, int forwardedCount)
|
||||
: history(item->history())
|
||||
, peer(history->peer)
|
||||
, author((!peer->isUser() && !item->isPost()) ? item->author() : nullptr)
|
||||
, item((forwardedCount > 1) ? nullptr : item)
|
||||
, forwardedCount(forwardedCount) {
|
||||
}
|
||||
QueuedNotification(not_null<HistoryItem*> item, int forwardedCount);
|
||||
|
||||
History *history;
|
||||
PeerData *peer;
|
||||
not_null<History*> history;
|
||||
not_null<PeerData*> peer;
|
||||
PeerData *author;
|
||||
HistoryItem *item;
|
||||
int forwardedCount;
|
||||
|
Reference in New Issue
Block a user