Avoid slow string byte counting functions

This commit is contained in:
William Casarin
2023-04-12 19:26:05 -07:00
parent 54c8958250
commit fc534ea42d
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ class NostrEvent: Codable, Identifiable, CustomStringConvertible, Equatable, Has
}
var too_big: Bool {
return self.content.underestimatedCount > 16000
return self.content.utf8.count > 16000
}
var should_show_event: Bool {