mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Open specific chat only in one window.
This commit is contained in:
@@ -478,20 +478,14 @@ void SessionNavigation::showPeerHistory(
|
||||
not_null<PeerData*> peer,
|
||||
const SectionShow ¶ms,
|
||||
MsgId msgId) {
|
||||
showPeerHistory(
|
||||
peer->id,
|
||||
params,
|
||||
msgId);
|
||||
showPeerHistory(peer->id, params, msgId);
|
||||
}
|
||||
|
||||
void SessionNavigation::showPeerHistory(
|
||||
not_null<History*> history,
|
||||
const SectionShow ¶ms,
|
||||
MsgId msgId) {
|
||||
showPeerHistory(
|
||||
history->peer->id,
|
||||
params,
|
||||
msgId);
|
||||
showPeerHistory(history->peer->id, params, msgId);
|
||||
}
|
||||
|
||||
void SessionNavigation::showSettings(
|
||||
@@ -680,7 +674,7 @@ void SessionController::initSupportMode() {
|
||||
}
|
||||
|
||||
void SessionController::toggleFiltersMenu(bool enabled) {
|
||||
if (!enabled == !_filters) {
|
||||
if (!isPrimary() || (!enabled == !_filters)) {
|
||||
return;
|
||||
} else if (enabled) {
|
||||
_filters = std::make_unique<FiltersMenu>(
|
||||
@@ -1316,10 +1310,7 @@ void SessionController::showPeerHistory(
|
||||
PeerId peerId,
|
||||
const SectionShow ¶ms,
|
||||
MsgId msgId) {
|
||||
content()->ui_showPeerHistory(
|
||||
peerId,
|
||||
params,
|
||||
msgId);
|
||||
content()->ui_showPeerHistory(peerId, params, msgId);
|
||||
}
|
||||
|
||||
void SessionController::showPeerHistoryAtItem(
|
||||
|
Reference in New Issue
Block a user