fix filedownload on maximized view and context menu
- move the logic for remembering local filenames from messagecontentmodel to neochatroom - use it also when maximized and in context menu opening, to stop re-downloading - make onFileTransferCompleted signal connection one-shot (stops memory leak)
This commit is contained in:
@@ -579,6 +579,14 @@ public:
|
||||
*/
|
||||
Q_INVOKABLE QString invitingUserId() const;
|
||||
|
||||
/**
|
||||
* @brief Return the cached file transfer information for the event.
|
||||
*
|
||||
* If we downloaded the file previously, return a struct with Completed status
|
||||
* and the local file path stored in KSharedCOnfig
|
||||
*/
|
||||
Quotient::FileTransferInfo cachedFileTransferInfo(const Quotient::RoomEvent *event) const;
|
||||
|
||||
private:
|
||||
QSet<const Quotient::RoomEvent *> highlights;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user