mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-25 06:14:31 +00:00
Resolved issue where a "Confirmation Error" notification appeared despite the confirmation being successful
This commit is contained in:
@@ -139,6 +139,10 @@ public partial class PortableMaClient : ObservableObject, IDisposable
|
||||
await SteamTradeApi.Acknowledge(Client, Mafile.SessionData!.SessionId, _cts.Token);
|
||||
await Task.Delay(10, _cts.Token);
|
||||
}
|
||||
else
|
||||
{
|
||||
return res;
|
||||
}
|
||||
|
||||
return await SteamMobileConfirmationsApi.SendMultipleConfirmations(Client, conf,
|
||||
Mafile.SessionData!.SteamId, Mafile, true, _cts.Token);
|
||||
|
||||
@@ -86,16 +86,21 @@ public static class MaClient
|
||||
var res = await SteamMobileConfirmationsApi.SendConfirmation(Client, confirmation, mafile.SessionData!.SteamId,
|
||||
mafile,
|
||||
confirm);
|
||||
|
||||
if (!res && confirmation.ConfType == ConfirmationType.Trade)
|
||||
{
|
||||
Shell.Logger.Warn("Failed to send trade confirmation for {accountName}. Sending ack", mafile.AccountName);
|
||||
await SteamTradeApi.Acknowledge(Client, mafile.SessionData.SessionId);
|
||||
await Task.Delay(10);
|
||||
}
|
||||
else
|
||||
{
|
||||
return res;
|
||||
}
|
||||
|
||||
return await SteamMobileConfirmationsApi.SendConfirmation(Client, confirmation, mafile.SessionData!.SteamId,
|
||||
mafile,
|
||||
confirm);
|
||||
mafile,
|
||||
confirm);
|
||||
}
|
||||
|
||||
public static async Task<bool> SendMultipleConfirmation(Mafile mafile, IEnumerable<Confirmation> confirmations,
|
||||
@@ -119,6 +124,10 @@ public static class MaClient
|
||||
await SteamTradeApi.Acknowledge(Client, mafile.SessionData.SessionId);
|
||||
await Task.Delay(10);
|
||||
}
|
||||
else
|
||||
{
|
||||
return res;
|
||||
}
|
||||
|
||||
return await SteamMobileConfirmationsApi.SendMultipleConfirmations(Client, enumerable,
|
||||
mafile.SessionData!.SteamId,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<SatelliteResourceLanguages>en;ru;ua</SatelliteResourceLanguages>
|
||||
<ApplicationIcon>Theme\lock.ico</ApplicationIcon>
|
||||
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
|
||||
<AssemblyVersion>1.7.3</AssemblyVersion>
|
||||
<AssemblyVersion>1.7.4</AssemblyVersion>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user