[php] dfdf

Viewer

  1.   {
  2.     id: 2,
  3.     participants: [MY_CONTACT, contacts[1]],
  4.     type: 'ONE_TO_ONE',
  5.     unreadCount: 0,
  6.     messages: [
  7.       {
  8.         id: uuidv4(),
  9.         body: _mock.text.sentence(1),
  10.         contentType: 'text',
  11.         attachments: [_mock.image.feed(1)],
  12.         createdAt: sub(new Date(), { hours: 10 }),
  13.         senderId: contacts[1].id,
  14.       },
  15.       {
  16.         id: uuidv4(),
  17.         body: _mock.text.sentence(2),
  18.         contentType: 'text',
  19.         attachments: [_mock.image.feed(2)],
  20.         createdAt: sub(new Date(), { hours: 2 }),
  21.         senderId: MY_CONTACT.id,
  22.       },
  23.       {
  24.         id: uuidv4(),
  25.         body: _mock.text.sentence(3),
  26.         contentType: 'text',
  27.         attachments: [`${HOST_API}/assets/images/avatars/avatar_12.mp4`],
  28.         createdAt: sub(new Date(), { minutes: 8 }),
  29.         senderId: contacts[1].id,
  30.       },
  31.       {
  32.         id: uuidv4(),
  33.         body: _mock.text.sentence(4),
  34.         contentType: 'text',
  35.         attachments: [
  36.           'https://mail.google.com/mail/u/file1.docx',
  37.           'https://mail.google.com/mail/u/file2.xlsx',
  38.           'https://mail.google.com/mail/u/file3.pptx',
  39.         ],
  40.         createdAt: sub(new Date(), { minutes: 6 }),
  41.         senderId: MY_CONTACT.id,
  42.       },
  43.       {
  44.         id: uuidv4(),
  45.         body: _mock.text.sentence(5),
  46.         contentType: 'text',
  47.         attachments: [
  48.           'https://mail.google.com/mail/u/file4.pdf',
  49.           'https://mail.google.com/mail/u/file5.psd',
  50.           'https://mail.google.com/mail/u/file6.esp',
  51.           'https://mail.google.com/mail/u/file7.sketch',
  52.         ],
  53.         createdAt: sub(new Date(), { minutes: 4 }),
  54.         senderId: contacts[1].id,
  55.       },
  56.       {
  57.         id: uuidv4(),
  58.         attachments: [],
  59.         contentType: 'image',
  60.         body: _mock.image.feed(4),
  61.         createdAt: sub(new Date(), { minutes: 2 }),
  62.         senderId: contacts[1].id,
  63.       },
  64.       {
  65.         id: uuidv4(),
  66.         contentType: 'text',
  67.         body: _mock.text.sentence(6),
  68.         attachments: [],
  69.         createdAt: sub(new Date(), { minutes: 2 }),
  70.         senderId: MY_CONTACT.id,
  71.       },
  72.       {
  73.         id: uuidv4(),
  74.         body: _mock.text.sentence(7),
  75.         contentType: 'text',
  76.         attachments: [],
  77.         createdAt: sub(new Date(), { minutes: 2 }),
  78.         senderId: MY_CONTACT.id,
  79.       },
  80.     ],
  81.   }

Editor

You can edit this paste and save as new: