mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various Fixes
This commit is contained in:
@@ -101,8 +101,12 @@ private func commitEntity(_ utf16: String.UTF16View, _ type: CurrentEntityType,
|
||||
var overlaps = false
|
||||
for entity in entities {
|
||||
if entity.range.overlaps(indexRange) {
|
||||
overlaps = true
|
||||
break
|
||||
if case .Spoiler = entity.type {
|
||||
|
||||
} else {
|
||||
overlaps = true
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if !overlaps {
|
||||
|
||||
Reference in New Issue
Block a user