mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Initial 64-bit id support
This commit is contained in:
@@ -1065,7 +1065,7 @@ extension GroupStatsTopPoster {
|
||||
init(apiStatsGroupTopPoster: Api.StatsGroupTopPoster) {
|
||||
switch apiStatsGroupTopPoster {
|
||||
case let .statsGroupTopPoster(userId, messages, avgChars):
|
||||
self = GroupStatsTopPoster(peerId: PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt32Value(userId)), messageCount: messages, averageChars: avgChars)
|
||||
self = GroupStatsTopPoster(peerId: PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt64Value(userId)), messageCount: messages, averageChars: avgChars)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1074,7 +1074,7 @@ extension GroupStatsTopAdmin {
|
||||
init(apiStatsGroupTopAdmin: Api.StatsGroupTopAdmin) {
|
||||
switch apiStatsGroupTopAdmin {
|
||||
case let .statsGroupTopAdmin(userId, deleted, kicked, banned):
|
||||
self = GroupStatsTopAdmin(peerId: PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt32Value(userId)), deletedCount: deleted, kickedCount: kicked, bannedCount: banned)
|
||||
self = GroupStatsTopAdmin(peerId: PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt64Value(userId)), deletedCount: deleted, kickedCount: kicked, bannedCount: banned)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1083,7 +1083,7 @@ extension GroupStatsTopInviter {
|
||||
init(apiStatsGroupTopInviter: Api.StatsGroupTopInviter) {
|
||||
switch apiStatsGroupTopInviter {
|
||||
case let .statsGroupTopInviter(userId, invitations):
|
||||
self = GroupStatsTopInviter(peerId: PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt32Value(userId)), inviteCount: invitations)
|
||||
self = GroupStatsTopInviter(peerId: PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt64Value(userId)), inviteCount: invitations)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user