include devid in ack payload

So server can choose to unretain.
This commit is contained in:
Eric House 2023-11-06 17:11:59 -08:00
parent e78d9fbc33
commit b962b18dff
3 changed files with 7 additions and 8 deletions

View file

@ -618,10 +618,10 @@ public class MQTTUtils extends Thread
String sum = Utils.getMD5SumFor( payload );
JSONObject params = new JSONObject();
try {
params.put( "sum", sum );
String devid = XwJNI.dvc_getMQTTDevID();
params.put( "devid", devid );
params.put( "gid", gameID );
// params.put( "from", senderDevID );
// params.put( "to", XwJNI.dvc_getMQTTDevID( null ) );
params.put( "sum", sum );
HttpsURLConnection conn
= NetUtils.makeHttpsMQTTConn( context, "ack" );

View file

@ -1596,6 +1596,10 @@
<string name="summary_wait_guest">Unconnected</string>
<!-- -->
<string name="summary_gameover">Game over\u200C</string>
<!-- Shown in games list game summary when a remote device has been
deleted and so no play is possible (but the game didn't
necessarily end). -->
<string name="summary_game_gone">Remote game deleted</string>
<!-- -->
<string name="summary_conn">Game in play</string>
<!-- -->

View file

@ -5,9 +5,4 @@
<string name="dup_allscores_fmt">All scores: %1$s</string>
<!-- Shown in games list game summary when a remote device has been
deleted and so no play is possible (but the game didn't
necessarily end). -->
<string name="summary_game_gone">Deleted by opponent</string>
</resources>