mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
fix: noforwards
This commit is contained in:
parent
f06747f2a1
commit
6fab4e1dc3
2 changed files with 7 additions and 10 deletions
|
@ -482,14 +482,11 @@ void History::destroyMessage(not_null<HistoryItem*> item) {
|
|||
|
||||
// AyuGram saveDeletedMessages
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (settings->saveDeletedMessages && item->isRegular() && !item->isGroupMigrate())
|
||||
{
|
||||
if (!item->isService())
|
||||
{
|
||||
if (settings->saveDeletedMessages && item->isRegular() && !item->isGroupMigrate()) {
|
||||
if (!item->isService()) {
|
||||
item->setAyuHint(settings->deletedMark);
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
const auto msg = TextWithEntities{
|
||||
"Message deleted",
|
||||
{
|
||||
|
@ -506,8 +503,7 @@ void History::destroyMessage(not_null<HistoryItem*> item) {
|
|||
| MessageFlag::HasReplyInfo
|
||||
| MessageFlag::HasPostAuthor;
|
||||
|
||||
if (item->isPost())
|
||||
{
|
||||
if (item->isPost()) {
|
||||
flags |= MessageFlag::Post;
|
||||
}
|
||||
|
||||
|
@ -521,7 +517,7 @@ void History::destroyMessage(not_null<HistoryItem*> item) {
|
|||
session().data().nextLocalMessageId(),
|
||||
flags,
|
||||
UserId(),
|
||||
replyTo,
|
||||
replyTo,
|
||||
base::unixtime::now(),
|
||||
item->author()->id,
|
||||
"AyuGram"_q,
|
||||
|
|
|
@ -361,7 +361,8 @@ MessageFlags FlagsFromMTP(
|
|||
? Flag::IsOrWasScheduled
|
||||
: Flag())
|
||||
| ((flags & MTP::f_views) ? Flag::HasViews : Flag())
|
||||
| ((flags & MTP::f_noforwards) ? Flag::NoForwards : Flag())
|
||||
// AyuGram: removed
|
||||
// | ((flags & MTP::f_noforwards) ? Flag::NoForwards : Flag())
|
||||
| ((flags & MTP::f_invert_media) ? Flag::InvertMedia : Flag());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue