mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08: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:
@@ -64,7 +64,9 @@ void Groups::unregisterMessage(not_null<const HistoryItem*> item) {
|
||||
}
|
||||
}
|
||||
|
||||
void Groups::refreshMessage(not_null<HistoryItem*> item, bool forceRefresh) {
|
||||
void Groups::refreshMessage(
|
||||
not_null<HistoryItem*> item,
|
||||
bool justRefreshViews) {
|
||||
if (!isGrouped(item)) {
|
||||
unregisterMessage(item);
|
||||
return;
|
||||
@@ -80,7 +82,7 @@ void Groups::refreshMessage(not_null<HistoryItem*> item, bool forceRefresh) {
|
||||
}
|
||||
auto &items = i->second.items;
|
||||
|
||||
if (forceRefresh) {
|
||||
if (justRefreshViews) {
|
||||
refreshViews(items);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user