File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
app/services/gamebridge/payloads Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ export default class NotificationPayload extends Payload {
5252 reason ?. includes ( "Player left" )
5353 ? "🏃♂️"
5454 : reason ?. includes ( "not enough coins" )
55- ? "💲"
56- : reason ?. includes ( "caller has left" )
57- ? "🤦♂️"
58- : reason ?. includes ( "Vote was aborted" )
59- ? "⛔"
60- : "❌"
55+ ? "💲"
56+ : reason ?. includes ( "caller has left" )
57+ ? "🤦♂️"
58+ : reason ?. includes ( "Vote was aborted" )
59+ ? "⛔"
60+ : "❌"
6161 )
6262 ) ;
6363 }
@@ -69,12 +69,12 @@ export default class NotificationPayload extends Payload {
6969 reason ?. includes ( "Player left" )
7070 ? "🏃♂️"
7171 : reason ?. includes ( "not enough coins" )
72- ? "💲"
73- : reason ?. includes ( "caller has left" )
74- ? "🤦♂️"
75- : reason ?. includes ( "Vote was aborted" )
76- ? "⛔"
77- : "❌"
72+ ? "💲"
73+ : reason ?. includes ( "caller has left" )
74+ ? "🤦♂️"
75+ : reason ?. includes ( "Vote was aborted" )
76+ ? "⛔"
77+ : "❌"
7878 )
7979 ) ;
8080 return ;
@@ -85,7 +85,9 @@ export default class NotificationPayload extends Payload {
8585 if ( message . trim ( ) . length < 1 ) message = "No reason provided..?" ;
8686
8787 const reporterSteamId64 = new SteamID ( reporter . steamID ) . getSteamID64 ( ) ;
88- const offenderSteamId64 = new SteamID ( offender . steamID ) . getSteamID64 ( ) ;
88+ const offenderSteamId64 = offender . steamID . startsWith ( "STEAM" )
89+ ? new SteamID ( offender . steamID ) . getSteamID64 ( )
90+ : offender . steamID ;
8991 const reporterAvatar = await steam . getUserAvatar ( reporterSteamId64 ) ;
9092 const offenderAvatar = await steam . getUserAvatar ( offenderSteamId64 ) ;
9193
You can’t perform that action at this time.
0 commit comments