mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
fix: index out bounds issue. resolve #255
This commit is contained in:
parent
da1d146465
commit
09f77c3876
@ -207,6 +207,7 @@ extension MosaicImageViewContainer {
|
||||
|
||||
func setupImageViews(count: Int, maxSize: CGSize) -> [ConfigurableMosaic] {
|
||||
reset()
|
||||
let count = min(4, max(0, count))
|
||||
guard count > 1 else {
|
||||
return []
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user