Fix crash on mention story opening.

This commit is contained in:
John Preston 2023-07-12 10:21:22 +04:00
parent 35e34541b0
commit 641a03c988
1 changed files with 4 additions and 1 deletions

View File

@ -53,7 +53,10 @@ StoryMention::StoryMention(
}
StoryMention::~StoryMention() {
changeSubscribedTo(0);
if (_subscribed) {
changeSubscribedTo(0);
_parent->checkHeavyPart();
}
}
int StoryMention::top() {