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

Add jump-to-topic panel in View as Messages.

This commit is contained in:
John Preston
2022-12-02 18:19:56 +04:00
parent 8281990bb8
commit a4e4681835
25 changed files with 470 additions and 150 deletions

View File

@@ -455,7 +455,7 @@ void Widget::chosenRow(const ChosenRow &row) {
topic,
row.message.fullId.msg,
Window::SectionShow::Way::ClearStack);
} else if (history && history->peer->isForum() && !row.message.fullId) {
} else if (history && history->isForum() && !row.message.fullId) {
const auto forum = history->peer->forum();
if (controller()->shownForum().current() == forum) {
controller()->closeForum();
@@ -1916,7 +1916,7 @@ void Widget::dropEvent(QDropEvent *e) {
controller()->content()->filesOrForwardDrop(
thread,
e->mimeData());
if (!thread->owningHistory()->peer->isForum()) {
if (!thread->owningHistory()->isForum()) {
hideChildList();
}
controller()->widget()->raise();