Update StickersManager.cpp
This commit is contained in:
parent
e39a2913f0
commit
82c8e4061b
@ -1617,7 +1617,7 @@ StickersManager::Sticker *StickersManager::get_sticker(FileId file_id) {
|
||||
const StickersManager::Sticker *StickersManager::get_sticker(FileId file_id) const {
|
||||
auto sticker = stickers_.find(file_id);
|
||||
if (sticker == stickers_.end()) {
|
||||
return Sticker{};
|
||||
return make_unique<Sticker>().get();
|
||||
}
|
||||
|
||||
CHECK(sticker->second->file_id == file_id);
|
||||
@ -1636,7 +1636,7 @@ StickersManager::StickerSet *StickersManager::get_sticker_set(StickerSetId stick
|
||||
const StickersManager::StickerSet *StickersManager::get_sticker_set(StickerSetId sticker_set_id) const {
|
||||
auto sticker_set = sticker_sets_.find(sticker_set_id);
|
||||
if (sticker_set == sticker_sets_.end()) {
|
||||
return StickerSet{};
|
||||
return make_unique<StickerSet>().get();
|
||||
}
|
||||
|
||||
return sticker_set->second.get();
|
||||
|
Reference in New Issue
Block a user