Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Model
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-15 15:33:43 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-17 16:26:22 +0300
commitb7e2e390a79910735898552932e4a7272c7f4a26 (patch)
tree109e046a193bd6ec641c7e190ad07766f69454b8 /lib/Model
parente9a5690ac1c6f251027acdac92254547e2080ec1 (diff)
Clean up mix up of ID, UID and UUID
* ID is supposed to be the database ID * UID is the IMAP UID * UUID is the globally unique identifier used in the front-end Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/IMAPMessage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php
index 6d73bcbae..1dae7a1d0 100644
--- a/lib/Model/IMAPMessage.php
+++ b/lib/Model/IMAPMessage.php
@@ -448,7 +448,7 @@ class IMAPMessage implements IMessage, JsonSerializable {
*/
public function jsonSerialize(): array {
return [
- 'id' => $this->getUid(),
+ 'uid' => $this->getUid(),
'messageId' => $this->getMessageId(),
'from' => $this->getFrom()->jsonSerialize(),
'to' => $this->getTo()->jsonSerialize(),