2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fixed display of toast about copying post link in corresponding window.

This commit is contained in:
23rd
2022-06-14 13:38:06 +03:00
parent 4de71408a2
commit 236b7bbf28
4 changed files with 13 additions and 10 deletions

View File

@@ -1270,7 +1270,7 @@ void FastShareMessage(
}
if (item->hasDirectLink()) {
using namespace HistoryView;
CopyPostLink(session, item->fullId(), Context::History);
CopyPostLink(controller, item->fullId(), Context::History);
} else if (const auto bot = item->getMessageBot()) {
if (const auto media = item->media()) {
if (const auto game = media->game()) {