fix: markUnread

This commit is contained in:
March 7th
2022-06-13 19:13:03 +07:00
parent d6622eea6f
commit 1c09f6beb1
4 changed files with 3 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ class APIRequest {
}
headers = Object.assign(headers, body.getHeaders());
// eslint-disable-next-line eqeqeq
} else if (this.options.data != null || this.options.usingApplicationJson) {
} else if (this.options.data != null) {
body = this.options.data ? JSON.stringify(this.options.data) : undefined;
headers['Content-Type'] = 'application/json';
} else if (this.options.body != null) {