Make closing link previews instant, as it should be

We were missing a endResetModel() call, now with it added the removal
happens instantly.

(cherry picked from commit bae4de227c)
This commit is contained in:
Joshua Goins
2024-11-09 18:06:29 -05:00
parent fed9197716
commit 317df56ffa

View File

@@ -645,6 +645,7 @@ void MessageContentModel::closeLinkPreview(int row)
m_removedLinkPreviews += m_components[row].attributes["link"_ls].toUrl();
m_components.remove(row);
m_components.squeeze();
endResetModel();
resetContent();
}
}