mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Dependent items clearing done better
Fixed crash on launch if audio playback could not be started
This commit is contained in:
@@ -6096,11 +6096,7 @@ void HistoryMessageReply::resize(int width) const {
|
||||
|
||||
void HistoryMessageReply::itemRemoved(HistoryMessage *holder, HistoryItem *removed) {
|
||||
if (replyToMsg == removed) {
|
||||
delete _replyToVia;
|
||||
_replyToVia = nullptr;
|
||||
|
||||
replyToMsg = nullptr;
|
||||
replyToMsgId = 0;
|
||||
clearData(holder);
|
||||
holder->setPendingInitDimensions();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user