File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
ArchiSteamFarm/Steam/Integration Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -706,8 +706,8 @@ public async Task<bool> JoinGroup(ulong groupID) {
706
706
{ "tradeoffermessage" , tradeOfferMessage }
707
707
} ;
708
708
709
- HashSet < ulong > tradeOfferIDs = new ( trades . Count ) ;
710
- HashSet < ulong > mobileTradeOfferIDs = new ( trades . Count ) ;
709
+ HashSet < ulong > ? tradeOfferIDs = null ;
710
+ HashSet < ulong > ? mobileTradeOfferIDs = null ;
711
711
712
712
foreach ( TradeOfferSendRequest trade in trades ) {
713
713
data [ "json_tradeoffer" ] = trade . ToJsonText ( ) ;
@@ -746,9 +746,13 @@ public async Task<bool> JoinGroup(ulong groupID) {
746
746
return ( false , tradeOfferIDs , mobileTradeOfferIDs ) ;
747
747
}
748
748
749
+ tradeOfferIDs ??= new HashSet < ulong > ( trades . Count ) ;
750
+
749
751
tradeOfferIDs . Add ( response . Content . TradeOfferID ) ;
750
752
751
753
if ( response . Content . RequiresMobileConfirmation ) {
754
+ mobileTradeOfferIDs ??= [ ] ;
755
+
752
756
mobileTradeOfferIDs . Add ( response . Content . TradeOfferID ) ;
753
757
}
754
758
}
You can’t perform that action at this time.
0 commit comments