Derive the notation names from one table and refuse an smsIdFormat that is not the pair
This commit is contained in:
+2
-2
@@ -120,7 +120,7 @@ export class Session extends EventEmitter<SessionEvents> {
|
||||
maxReassembly: options.maxReassembly,
|
||||
onRequest: options.onRequest,
|
||||
reassemblyTimeout: options.reassemblyTimeout,
|
||||
receiptIdFormat: options.smsIdFormat?.receipt,
|
||||
receiptIdNotation: options.smsIdFormat?.receipt,
|
||||
session: this,
|
||||
systemId: options.systemId,
|
||||
});
|
||||
@@ -210,7 +210,7 @@ export class Session extends EventEmitter<SessionEvents> {
|
||||
const sent = await submitSms({
|
||||
log: this.log,
|
||||
reference: this.nextConcatReference(),
|
||||
respIdFormat: this.options.smsIdFormat?.submitResp,
|
||||
respIdNotation: this.options.smsIdFormat?.submitResp,
|
||||
send: input => this.send(input, options),
|
||||
}, sms);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user