mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-08 07:55:22 +00:00
Rename MigrationNeededException to PhoneMigrationException
There are different kind of MIGRATE errors that could be
thrown by the Telegram API, as evidenced by this recent
change:
b06f8a8e11
So this rename tries to make it consistent to the new
exception names:
* FILE_MIGRATE_x -> FileMigrationException
* USER_MIGRATE_y -> UserMigrationException
* PHONE_MIGRATE_z -> PhoneMigrationException
This commit is contained in:
parent
8c0ce7ac39
commit
c1305ada65
2 changed files with 4 additions and 4 deletions
|
|
@ -124,7 +124,7 @@ namespace TLSharp.Core
|
|||
|
||||
completed = true;
|
||||
}
|
||||
catch (MigrationNeededException ex)
|
||||
catch (PhoneMigrationException ex)
|
||||
{
|
||||
await ReconnectToDcAsync(ex.DC);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue