mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Allow null expireTimer in sendmessage
This commit is contained in:
@@ -36,7 +36,7 @@ function Message(options) {
|
||||
throw new Error('Invalid timestamp');
|
||||
}
|
||||
|
||||
if (this.expireTimer !== undefined) {
|
||||
if (this.expireTimer !== undefined && this.expireTimer !== null) {
|
||||
if (typeof this.expireTimer !== 'number' || !(this.expireTimer >= 0)) {
|
||||
throw new Error('Invalid expireTimer');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user