Reuse forward in fast share
This commit is contained in:
parent
988c27a94d
commit
bde2a4d534
1 changed files with 6 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
#include "window/notifications_manager.h"
|
#include "window/notifications_manager.h"
|
||||||
#include "window/window_session_controller.h"
|
#include "window/window_session_controller.h"
|
||||||
|
#include "window/window_peer_menu.h"
|
||||||
#include "storage/storage_shared_media.h"
|
#include "storage/storage_shared_media.h"
|
||||||
#include "mtproto/mtproto_config.h"
|
#include "mtproto/mtproto_config.h"
|
||||||
#include "data/data_session.h"
|
#include "data/data_session.h"
|
||||||
|
|
@ -195,6 +196,10 @@ QString GetErrorTextForSending(
|
||||||
}
|
}
|
||||||
|
|
||||||
void FastShareMessage(not_null<HistoryItem*> item) {
|
void FastShareMessage(not_null<HistoryItem*> item) {
|
||||||
|
Window::ShowForwardMessagesBox(
|
||||||
|
App::wnd()->sessionController(),
|
||||||
|
item->history()->owner().itemOrItsGroup(item));
|
||||||
|
/*
|
||||||
struct ShareData {
|
struct ShareData {
|
||||||
ShareData(not_null<PeerData*> peer, MessageIdsList &&ids)
|
ShareData(not_null<PeerData*> peer, MessageIdsList &&ids)
|
||||||
: peer(peer)
|
: peer(peer)
|
||||||
|
|
@ -351,6 +356,7 @@ void FastShareMessage(not_null<HistoryItem*> item) {
|
||||||
std::move(copyLinkCallback),
|
std::move(copyLinkCallback),
|
||||||
std::move(submitCallback),
|
std::move(submitCallback),
|
||||||
std::move(filterCallback)));
|
std::move(filterCallback)));
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
Fn<void(ChannelData*, MsgId)> HistoryDependentItemCallback(
|
Fn<void(ChannelData*, MsgId)> HistoryDependentItemCallback(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue