mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Don't use synthetic 64-bit peer ids
This commit is contained in:
parent
6cf4427be0
commit
90b96c0e8e
@ -1,11 +1,12 @@
|
||||
import Foundation
|
||||
import Postbox
|
||||
import MurMurHash32
|
||||
|
||||
import SyncCore
|
||||
|
||||
func addSynchronizeEmojiKeywordsOperation(transaction: Transaction, inputLanguageCode: String, languageCode: String?, fromVersion: Int32?) {
|
||||
let tag = OperationLogTags.SynchronizeEmojiKeywords
|
||||
let peerId = PeerId(emojiKeywordColletionIdForCode(inputLanguageCode).id)
|
||||
let peerId = PeerId(namespace: PeerId.Namespace._internalFromInt32Value(0), id: PeerId.Id._internalFromInt32Value(murMurHashString32(inputLanguageCode)))
|
||||
|
||||
var hasExistingOperation = false
|
||||
transaction.operationLogEnumerateEntries(peerId: peerId, tag: tag) { entry -> Bool in
|
||||
|
Loading…
x
Reference in New Issue
Block a user