Stop being able to crash NeoChat by pressing a button repeatedly
If you spam click the "Close link preview" button, it's possible to crash NeoChat. This is because the index check is wrong for the array size.
It's possible to even do this due to a bug causing the removal to be reflected visually too slowly, that's fixed in the next commit.
We were missing a endResetModel() call, now with it added the removal happens instantly.
Edited by Joshua Goins