1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

smscontroller::removeConversation link with smsmapper::removeMessagesForPhoneNumber. We need to drop messages now

This commit is contained in:
Loic Blot
2015-06-24 06:40:03 +00:00
parent 4852fa3675
commit 76b0ae3912
2 changed files with 9 additions and 4 deletions
+2
View File
@@ -171,9 +171,11 @@ class SmsController extends Controller {
if ($contactName != "" && isset($iContacts[$contactName])) {
// forall numbers in iContacts
foreach($iContacts[$contactName] as $cnumber) {
$this->smsMapper->removeMessagesForPhoneNumber($this->userId, $cnumber);
}
}
else {
$this->smsMapper->removeMessagesForPhoneNumber($this->userId, $phoneNumber);
}
return new JSONResponse(array());
}