Skip to content

Commit

Permalink
Closes #2978
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Oct 30, 2023
1 parent a1cf829 commit 5a5a6e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 52 deletions.
8 changes: 4 additions & 4 deletions ArchiSteamFarm/Steam/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,10 @@ private Bot(string botName, BotConfig botConfig, BotDatabase botDatabase) {
CallbackManager.Subscribe<SteamUser.LoggedOnCallback>(OnLoggedOn);
CallbackManager.Subscribe<SteamUser.PlayingSessionStateCallback>(OnPlayingSessionState);
CallbackManager.Subscribe<SteamUser.VanityURLChangedCallback>(OnVanityURLChangedCallback);
CallbackManager.Subscribe<SteamUser.WalletInfoCallback>(OnWalletInfo);

CallbackManager.Subscribe<SharedLibraryLockStatusCallback>(OnSharedLibraryLockStatus);
CallbackManager.Subscribe<UserNotificationsCallback>(OnUserNotifications);
CallbackManager.Subscribe<WalletInfoUpdateCallback>(OnWalletInfoUpdate);

Actions = new Actions(this);
CardsFarmer = new CardsFarmer(this);
Expand Down Expand Up @@ -3370,11 +3370,11 @@ private void OnVanityURLChangedCallback(SteamUser.VanityURLChangedCallback callb
ArchiWebHandler.OnVanityURLChanged(callback.VanityURL);
}

private void OnWalletInfoUpdate(WalletInfoUpdateCallback callback) {
private void OnWalletInfo(SteamUser.WalletInfoCallback callback) {
ArgumentNullException.ThrowIfNull(callback);

WalletBalance = callback.Balance;
WalletBalanceDelayed = callback.BalanceDelayed;
WalletBalance = callback.LongBalance;
WalletBalanceDelayed = callback.LongBalanceDelayed;
WalletCurrency = callback.Currency;
}

Expand Down
5 changes: 0 additions & 5 deletions ArchiSteamFarm/Steam/Integration/ArchiHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,6 @@ public override void HandleMsg(IPacketMsg packetMsg) {
ClientMsgProtobuf<CMsgClientUserNotifications> userNotifications = new(packetMsg);
Client.PostCallback(new UserNotificationsCallback(packetMsg.TargetJobID, userNotifications.Body));

break;
case EMsg.ClientWalletInfoUpdate:
ClientMsgProtobuf<CMsgClientWalletInfoUpdate> walletInfoUpdate = new(packetMsg);
Client.PostCallback(new WalletInfoUpdateCallback(packetMsg.TargetJobID, walletInfoUpdate.Body));

break;
}
}
Expand Down

This file was deleted.

0 comments on commit 5a5a6e2

Please sign in to comment.