mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Refactored code.
- Refactored passing message id to edit media. - Removed get/setEditMedia from mainwidget. - Combined onEditMedia and onSendFileConfirm in single method. - Added argument in FileLoadTask to pass message id to edit media. - Renamed flags in apiwrap. - Added check for allowing edit media when use clipboard. - Removed unused fileIsValidForAlbum. - Removed LOGs. - Replaced _isNotAlbum with _isAlbum. - Removed _viaRemoteContent. - Removed _newMediaPath. - Added empty() to MessageGroupId.
This commit is contained in:
@@ -111,13 +111,6 @@ public:
|
||||
|
||||
void start();
|
||||
|
||||
void setEditMedia(FullMsgId flag) {
|
||||
_editMedia = flag;
|
||||
}
|
||||
FullMsgId getEditMedia() const {
|
||||
return _editMedia;
|
||||
}
|
||||
|
||||
void openPeerByName(
|
||||
const QString &name,
|
||||
MsgId msgId = ShowAtUnreadMsgId,
|
||||
@@ -165,9 +158,9 @@ public:
|
||||
QPixmap grabForShowAnimation(const Window::SectionSlideParams ¶ms);
|
||||
void checkMainSectionToLayer();
|
||||
|
||||
void onSendFileConfirm(const std::shared_ptr<FileLoadResult> &file);
|
||||
void onEditMedia(const std::shared_ptr<FileLoadResult> &file,
|
||||
const FullMsgId &oldId);
|
||||
void onSendFileConfirm(
|
||||
const std::shared_ptr<FileLoadResult> &file,
|
||||
const std::optional<FullMsgId> &oldId);
|
||||
bool onSendSticker(DocumentData *sticker);
|
||||
|
||||
void destroyData();
|
||||
@@ -553,6 +546,4 @@ private:
|
||||
bool _firstColumnResizing = false;
|
||||
int _firstColumnResizingShift = 0;
|
||||
|
||||
FullMsgId _editMedia;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user