nextcloud / talk-ios

📱😀 Video & audio calls through Nextcloud on iOS
GNU General Public License v3.0
150 stars 92 forks source link

Fix potential crash on invalid preview size #1749

Closed SystemKeeper closed 2 months ago

SystemKeeper commented 2 months ago

Some crash reports indicate that we sometimes crash when setting the preview constraint. The only way to reproduce this is using non-finite values, e.g. CGFloat.nan. Therefore we make sure that we got a finite value for the preview size, which hopefully fixes the crashes.