testing, solved unhandled exception, conditions to restrict old message to be edited, license un some files that used to miss them

This commit is contained in:
Blue 2022-04-01 00:32:22 +03:00
parent 5f6691067a
commit 1fcd403dba
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
17 changed files with 244 additions and 4 deletions

View file

@ -513,7 +513,8 @@ void Conversation::onFeedContext(const QPoint& pos)
});
}
if (item->getOutgoing()) {
//the only mandatory condition - is for the message to be outgoing, the rest is just a good intention on the server
if (item->getOutgoing() && index.row() < 100 && item->getTime().daysTo(QDateTime::currentDateTimeUtc()) < 20) {
showMenu = true;
QAction* edit = contextMenu->addAction(Shared::icon("edit-rename"), tr("Edit"));
connect(edit, &QAction::triggered, this, std::bind(&Conversation::onMessageEditRequested, this, id));