Permalink
Browse files

remove split batch id todo

  • Loading branch information...
1 parent b052761 commit 4d98c1d4bebb4add546c097fb053f2c0d83d58b1 @kaven276 committed Jun 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cmds/cmdSubmit.js
View
@@ -104,7 +104,7 @@ function Submit(UserNumber, MessageCoding, MessageContent, options){
var splits = this.splits = Math.ceil(msglen / (140 - 6));
var parts = this.MessageContentParts = new Buffer(msglen + 6 * splits);
- var batchID = Math.random() * 256; // todo: how to determine the batchID
+ var batchID = Math.random() * 256;
for (var i = 0; i < splits; i++) {
(new Buffer([0x05, 0x00, 0x03, batchID, splits, i + 1])).copy(parts, i * 140);
this.MessageContentLong.slice(i * (140 - 6), Math.min((i + 1) * (140 - 6), msglen)).copy(parts, i * 140 + 6);

0 comments on commit 4d98c1d

Please sign in to comment.