mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various fixes
This commit is contained in:
@@ -3872,6 +3872,13 @@ func replayFinalState(
|
||||
}
|
||||
}
|
||||
|
||||
if let previousFactCheckAttribute = previousMessage.attributes.first(where: { $0 is FactCheckMessageAttribute }) as? FactCheckMessageAttribute, let updatedFactCheckAttribute = message.attributes.first(where: { $0 is FactCheckMessageAttribute }) as? FactCheckMessageAttribute {
|
||||
if case .Pending = updatedFactCheckAttribute.content, updatedFactCheckAttribute.hash == previousFactCheckAttribute.hash {
|
||||
updatedAttributes.removeAll(where: { $0 is FactCheckMessageAttribute })
|
||||
updatedAttributes.append(previousFactCheckAttribute)
|
||||
}
|
||||
}
|
||||
|
||||
if let message = locallyRenderedMessage(message: message, peers: peers) {
|
||||
generatedEvent = reactionGeneratedEvent(previousMessage.reactionsAttribute, message.reactionsAttribute, message: message, transaction: transaction)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user