Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
addDeviceMessage does also accept strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Mar 7, 2020
1 parent 9c7594a commit 795bb2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/deltachat.ts
Expand Up @@ -54,7 +54,7 @@ export class DeltaChat extends EventEmitter {
)
}

addDeviceMessage (label:string, msg:Message) {
addDeviceMessage (label:string, msg:Message|string) {
debug(`addDeviceMessage ${label} ${msg}`)
if (!msg) {
throw new Error('invalid msg parameter')
Expand Down

0 comments on commit 795bb2e

Please sign in to comment.