mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Fix a crash in tags removal.
This commit is contained in:
parent
237baf11df
commit
1cce1e8a90
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ void Reactions::decrementMyTag(const ReactionId &id, SavedSublist *sublist) {
|
|||
}
|
||||
auto &my = _myTags[sublist];
|
||||
auto i = ranges::find(my.info, id, &MyTagInfo::id);
|
||||
if (i->count > 0) {
|
||||
if (i != end(my.info) && i->count > 0) {
|
||||
--i->count;
|
||||
while (i + 1 != end(my.info)) {
|
||||
auto j = i + 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue