Keep the body scrape for reserved message types and an empty receipt id marker
This commit is contained in:
@@ -103,11 +103,11 @@ export const consts = {
|
||||
},
|
||||
} as const;
|
||||
|
||||
/** esm_class bits 5-2 name the message type; bit 6 is the UDH indicator. */
|
||||
export function hasUdh(esmClass: number): boolean {
|
||||
return (esmClass & consts.ESM_CLASS.UDH_INDICATOR) === consts.ESM_CLASS.UDH_INDICATOR;
|
||||
}
|
||||
|
||||
/** Bits 5-2 of esm_class; the rest carry the messaging mode and the GSM features. */
|
||||
export function messageTypeOf(esmClass: number): number {
|
||||
return esmClass & 0x3c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user