2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support topic choosing in ShareBox.

This commit is contained in:
John Preston
2022-11-01 15:17:13 +04:00
parent 7384cd3463
commit e6c2aa8021
14 changed files with 273 additions and 117 deletions

View File

@@ -141,7 +141,7 @@ void ShowChooseBox(
callback(thread);
};
auto filter = [=](not_null<Data::Thread*> thread) -> bool {
const auto peer = thread->owningHistory()->peer;
const auto peer = thread->peer();
if (!thread->canWrite()) {
return false;
} else if (const auto user = peer->asUser()) {