forked from blue/squawk
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:
parent
5f6691067a
commit
1fcd403dba
17 changed files with 244 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue