Skip to content

Commit 6b0d517

Browse files
201 removed
1 parent 9bedc9d commit 6b0d517

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/Messaging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ std::string Messaging::deleteMessages(const std::string &messageId) {
574574
std::string response;
575575
int statusCode = Utils::patchRequest(url, payload, headers, response);
576576

577-
if (statusCode == HttpStatus::OK || statusCode == HttpStatus::CREATED) {
577+
if (statusCode == HttpStatus::OK) {
578578
return response;
579579
} else {
580580
throw AppwriteException("Error updating message. Status code: " + std::to_string(statusCode) +

0 commit comments

Comments
 (0)