mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various fixes
This commit is contained in:
parent
380b80417b
commit
41f01a5f70
@ -12214,6 +12214,7 @@ Sorry for the inconvenience.";
|
|||||||
|
|
||||||
"FactCheck.Title" = "Fact Check";
|
"FactCheck.Title" = "Fact Check";
|
||||||
"FactCheck.Placeholder" = "Add Fact Check";
|
"FactCheck.Placeholder" = "Add Fact Check";
|
||||||
|
"FactCheck.Remove" = "Remove";
|
||||||
|
|
||||||
"Conversation.ContextMenuAddFactCheck" = "Add Fact Check";
|
"Conversation.ContextMenuAddFactCheck" = "Add Fact Check";
|
||||||
"Conversation.ContextMenuEditFactCheck" = "Edit Fact Check";
|
"Conversation.ContextMenuEditFactCheck" = "Edit Fact Check";
|
||||||
|
@ -208,14 +208,10 @@ private func contentNodeMessagesAndClassesForItem(_ item: ChatMessageItem) -> ([
|
|||||||
} else if let invoice = media as? TelegramMediaInvoice {
|
} else if let invoice = media as? TelegramMediaInvoice {
|
||||||
if let _ = invoice.extendedMedia {
|
if let _ = invoice.extendedMedia {
|
||||||
result.append((message, ChatMessageMediaBubbleContentNode.self, itemAttributes, BubbleItemAttributes(isAttachment: false, neighborType: .media, neighborSpacing: .default)))
|
result.append((message, ChatMessageMediaBubbleContentNode.self, itemAttributes, BubbleItemAttributes(isAttachment: false, neighborType: .media, neighborSpacing: .default)))
|
||||||
} else {
|
|
||||||
if invoice.currency == "XTR" {
|
|
||||||
result.append((message, ChatMessageTextBubbleContentNode.self, itemAttributes, BubbleItemAttributes(isAttachment: false, neighborType: .text, neighborSpacing: .default)))
|
|
||||||
} else {
|
} else {
|
||||||
skipText = true
|
skipText = true
|
||||||
result.append((message, ChatMessageInvoiceBubbleContentNode.self, itemAttributes, BubbleItemAttributes(isAttachment: false, neighborType: .text, neighborSpacing: .default)))
|
result.append((message, ChatMessageInvoiceBubbleContentNode.self, itemAttributes, BubbleItemAttributes(isAttachment: false, neighborType: .text, neighborSpacing: .default)))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
needReactions = false
|
needReactions = false
|
||||||
break inner
|
break inner
|
||||||
} else if let _ = media as? TelegramMediaContact {
|
} else if let _ = media as? TelegramMediaContact {
|
||||||
|
@ -20,7 +20,11 @@ extension ChatControllerImpl {
|
|||||||
guard let self else {
|
guard let self else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if !currentText.isEmpty && text.isEmpty {
|
||||||
|
let _ = self.context.engine.messages.deleteMessageFactCheck(messageId: messageId).startStandalone()
|
||||||
|
} else {
|
||||||
let _ = self.context.engine.messages.editMessageFactCheck(messageId: messageId, text: text, entities: entities).startStandalone()
|
let _ = self.context.engine.messages.editMessageFactCheck(messageId: messageId, text: text, entities: entities).startStandalone()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
self.present(controller, in: .window(.root))
|
self.present(controller, in: .window(.root))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user