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
44910be705
commit
b77185fcb8
3 changed files with 13 additions and 1 deletions
|
|
@ -11649,7 +11649,7 @@ Sorry for the inconvenience.";
|
|||
"ChatList.AddBirthdayTitle" = "Add your birthday! 🎂";
|
||||
"ChatList.AddBirthdayText" = "Let your contacts know when you're celebrating.";
|
||||
|
||||
"ChatList.BirthdaySingleTitle" = "It's %@ **birthday** today! 🎂";
|
||||
"ChatList.BirthdaySingleTitle" = "It's %@'s **birthday** today! 🎂";
|
||||
"ChatList.BirthdaySingleText" = "Gift them Telegram Premium.";
|
||||
|
||||
"ChatList.BirthdayMultipleTitle_1" = "%@ contact have **birthday** today! 🎂";
|
||||
|
|
|
|||
|
|
@ -538,6 +538,9 @@ private func contactListNodeEntries(accountPeer: EnginePeer?, peers: [ContactLis
|
|||
|
||||
var index: Int = 0
|
||||
for peer in topPeers.prefix(15) {
|
||||
if peer.isDeleted {
|
||||
continue
|
||||
}
|
||||
existingPeerIds.insert(.peer(peer.id))
|
||||
|
||||
let selection: ContactsPeerItemSelection
|
||||
|
|
@ -579,6 +582,9 @@ private func contactListNodeEntries(accountPeer: EnginePeer?, peers: [ContactLis
|
|||
|
||||
for peerId in peerIds {
|
||||
if let peer = topPeers.first(where: { $0.id == peerId }) {
|
||||
if peer.isDeleted {
|
||||
continue
|
||||
}
|
||||
if existingPeerIds.contains(.peer(peer.id)) {
|
||||
continue
|
||||
}
|
||||
|
|
@ -625,6 +631,9 @@ private func contactListNodeEntries(accountPeer: EnginePeer?, peers: [ContactLis
|
|||
})
|
||||
|
||||
for peer in topPeers.prefix(15) {
|
||||
if peer.isDeleted {
|
||||
continue
|
||||
}
|
||||
if existingPeerIds.contains(.peer(peer.id)) {
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,6 +119,9 @@ func managedContactBirthdays(stateManager: AccountStateManager) -> Signal<Never,
|
|||
for contactBirthday in contactBirthdays {
|
||||
if case let .contactBirthday(contactId, birthday) = contactBirthday {
|
||||
let peerId = EnginePeer.Id(namespace: Namespaces.Peer.CloudUser, id: EnginePeer.Id.Id._internalFromInt64Value(contactId))
|
||||
if peerId == stateManager.accountPeerId {
|
||||
continue
|
||||
}
|
||||
birthdays[peerId] = TelegramBirthday(apiBirthday: birthday)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue