From 0b3180917fef349de548bf910241a859aa524c0e Mon Sep 17 00:00:00 2001 From: Wizou Date: Thu, 23 Sep 2021 09:42:35 +0200 Subject: [PATCH] minor improvements --- src/Client.cs | 3 ++- src/TL.Table.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Client.cs b/src/Client.cs index bd47a56..e31425a 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -162,8 +162,9 @@ namespace WTelegram Helpers.Log(2, $"Connected to {(TLConfig.test_mode ? "Test DC" : "DC")} {TLConfig.this_dc}... {TLConfig.flags & (Config.Flags)~0xE00}"); } - public async Task MigrateDCAsync(int dcId) + public async Task MigrateDCAsync(int dcId = 0) { + if (dcId == 0) dcId = _session.MainDC; if (DCSession.DataCenter?.id == dcId) return; Helpers.Log(2, $"Migrate to DC {dcId}..."); Auth_ExportedAuthorization exported = null; diff --git a/src/TL.Table.cs b/src/TL.Table.cs index 0b3340e..60f0178 100644 --- a/src/TL.Table.cs +++ b/src/TL.Table.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace TL { - static class Layer + public static class Layer { public const int Version = 133; // fetched 17/09/2021 02:47:02 internal const uint VectorCtor = 0x1CB5C415;