mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various fixes
This commit is contained in:
parent
8ed9cb99e6
commit
1b888befa1
1 changed files with 5 additions and 5 deletions
|
|
@ -112,8 +112,8 @@ final class ComposeTodoScreenComponent: Component {
|
|||
private var reorderRecognizer: ReorderGestureRecognizer?
|
||||
private var reorderingItem: (id: AnyHashable, snapshotView: UIView, backgroundView: UIView, initialPosition: CGPoint, position: CGPoint)?
|
||||
|
||||
var isAppendableByOthers = false
|
||||
var isCompletableByOthers = false
|
||||
var isAppendableByOthers = true
|
||||
var isCompletableByOthers = true
|
||||
|
||||
override init(frame: CGRect) {
|
||||
self.scrollView = UIScrollView()
|
||||
|
|
@ -298,13 +298,13 @@ final class ComposeTodoScreenComponent: Component {
|
|||
}
|
||||
|
||||
func validatedInput() -> TelegramMediaTodo? {
|
||||
if self.todoTextInputState.text.length == 0 {
|
||||
if self.todoTextInputState.text.string.trimmingCharacters(in: .whitespacesAndNewlines).count == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
var mappedItems: [TelegramMediaTodo.Item] = []
|
||||
for todoItem in self.todoItems {
|
||||
if todoItem.textInputState.text.length == 0 {
|
||||
if todoItem.textInputState.text.string.trimmingCharacters(in: .whitespacesAndNewlines).count == 0 {
|
||||
continue
|
||||
}
|
||||
var entities: [MessageTextEntity] = []
|
||||
|
|
@ -1171,7 +1171,7 @@ final class ComposeTodoScreenComponent: Component {
|
|||
contentHeight += sectionSpacing
|
||||
|
||||
var todoSettingsSectionItems: [AnyComponentWithIdentity<Empty>] = []
|
||||
if canEdit && component.peer.id != component.context.account.peerId {
|
||||
if canEdit {
|
||||
todoSettingsSectionItems.append(AnyComponentWithIdentity(id: "completable", component: AnyComponent(ListActionItemComponent(
|
||||
theme: theme,
|
||||
title: AnyComponent(VStack([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue