Use "received" as tab for circles or groups when currently in a channel

This commit is contained in:
Michael 2023-09-17 11:01:04 +00:00
parent 371309e775
commit e96bb4c5e6

View File

@ -317,6 +317,10 @@ class Network extends Timeline
throw new HTTPException\BadRequestException($this->l10n->t('Network feed not available.'));
}
if (($this->network || $this->circleId || $this->groupContactId) && ($this->timeline->isChannel($this->selectedTab) || $this->timeline->isCommunity($this->selectedTab))) {
$this->selectedTab = TimelineEntity::RECEIVED;
}
if (!empty($request['star'])) {
$this->selectedTab = TimelineEntity::STAR;
$this->star = true;