mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
fix multi-message aspect of smsproto
passes --run-sms-test now, and works on Android occasionally combining messages.
This commit is contained in:
parent
9c1e7ac154
commit
1522463a3a
2 changed files with 9 additions and 8 deletions
|
@ -397,6 +397,8 @@ public class SMSService extends XWJIService {
|
|||
sendBuffers( msgs, toPhone );
|
||||
}
|
||||
if ( waitSecs > 0 ) {
|
||||
// PENDING
|
||||
Log.d( TAG, "calling postResend(), but might want to avoid enqueueWork!" );
|
||||
postResend( toPhone, waitSecs );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
/* To match the SMSService format */
|
||||
#define SMS_PROTO_VERSION_JAVA 1
|
||||
#define SMS_PROTO_VERSION_COMBO 2
|
||||
# define SMS_PROTO_VERSION SMS_PROTO_VERSION_JAVA
|
||||
|
||||
#define PARTIALS_FORMAT 0
|
||||
|
||||
|
@ -831,7 +830,7 @@ toNetMsgs( SMSProto* state, ToPhoneRec* rec, XP_Bool forceOld )
|
|||
SMSMsgNet newMsg = { .len = useLen + 4,
|
||||
.data = XP_MALLOC( state->mpool, useLen + 4 )
|
||||
};
|
||||
newMsg.data[0] = SMS_PROTO_VERSION;
|
||||
newMsg.data[0] = SMS_PROTO_VERSION_JAVA;
|
||||
newMsg.data[1] = msgID;
|
||||
newMsg.data[2] = indx;
|
||||
newMsg.data[3] = count;
|
||||
|
|
Loading…
Add table
Reference in a new issue