mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
inline bots gif / photo preview / sending done
This commit is contained in:
@@ -2576,6 +2576,15 @@ namespace Local {
|
||||
return _stickerImagesMap.constFind(location) != _stickerImagesMap.cend();
|
||||
}
|
||||
|
||||
void copyStickerImage(const StorageKey &oldLocation, const StorageKey &newLocation) {
|
||||
StorageMap::const_iterator i = _stickerImagesMap.constFind(oldLocation);
|
||||
if (i != _stickerImagesMap.cend()) {
|
||||
_stickerImagesMap.insert(newLocation, i.value());
|
||||
_mapChanged = true;
|
||||
_writeMap();
|
||||
}
|
||||
}
|
||||
|
||||
int32 hasStickers() {
|
||||
return _stickerImagesMap.size();
|
||||
}
|
||||
|
Reference in New Issue
Block a user