doovers for failed messages, some corner cases fixes with handling errors during message sending
This commit is contained in:
parent
ddfaa63a24
commit
3f1fba4de2
12 changed files with 89 additions and 19 deletions
|
@ -414,6 +414,16 @@ void Conversation::onFeedContext(const QPoint& pos)
|
|||
|
||||
contextMenu->clear();
|
||||
bool showMenu = false;
|
||||
if (item->getState() == Shared::Message::State::error) {
|
||||
showMenu = true;
|
||||
QString id = item->getId();
|
||||
QAction* resend = contextMenu->addAction(Shared::icon("view-refresh"), tr("Try sending again"));
|
||||
connect(resend, &QAction::triggered, [this, id]() {
|
||||
element->feed->registerUpload(id);
|
||||
emit resendMessage(id);
|
||||
});
|
||||
}
|
||||
|
||||
QString path = item->getAttachPath();
|
||||
if (path.size() > 0) {
|
||||
showMenu = true;
|
||||
|
|
|
@ -80,6 +80,7 @@ public:
|
|||
|
||||
signals:
|
||||
void sendMessage(const Shared::Message& message);
|
||||
void resendMessage(const QString& id);
|
||||
void requestArchive(const QString& before);
|
||||
void shown();
|
||||
void requestLocalFile(const QString& messageId, const QString& url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue