mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Implement correct saved messages history layout.
Forwarded info is displayed as a message author info (name/photo). Outgoing messages without forwarded info are displayed as out(). Messages with save_from_ info have a button for GoToOriginal().
This commit is contained in:
@@ -1013,6 +1013,20 @@ void MainWidget::showSendPathsLayer() {
|
||||
hiderLayer(object_ptr<HistoryHider>(this));
|
||||
}
|
||||
|
||||
void MainWidget::showForwardBox(SelectedItemSet &&items) {
|
||||
auto controller = std::make_unique<ChooseRecipientBoxController>(
|
||||
[items = std::move(items)](not_null<PeerData*> peer) {
|
||||
App::main()->setForwardDraft(peer->id, items);
|
||||
});
|
||||
Ui::show(Box<PeerListBox>(
|
||||
std::move(controller),
|
||||
[](not_null<PeerListBox*> box) {
|
||||
box->addButton(langFactory(lng_cancel), [box] {
|
||||
box->closeBox();
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
void MainWidget::deleteLayer(int selectedCount) {
|
||||
if (selectedCount) {
|
||||
auto forDelete = true;
|
||||
|
Reference in New Issue
Block a user