Feature: Add online status to each user (#452)

* Feature: Add online status to each user
* Add OnlineStatusable, add availability status to thumbnail
This commit is contained in:
Pranav Raj S
2020-02-02 22:34:16 +05:30
committed by GitHub
parent 1f4703d25d
commit 0b31e14132
14 changed files with 106 additions and 14 deletions

View File

@@ -61,19 +61,27 @@ describe('#getters', () => {
id: 1,
content: 'Thanks for the help',
created_at: 1574075964,
message_type: 0,
},
2: {
id: 2,
content: 'Yes, It makes sense',
created_at: 1574092218,
message_type: 0,
},
3: {
id: 3,
content: 'Hey',
created_at: 1576340623,
created_at: 1574092218,
message_type: 1,
},
4: {
id: 4,
content: 'Hey',
created_at: 1576340623,
},
5: {
id: 5,
content: 'How may I help you',
created_at: 1576340626,
},
@@ -88,12 +96,21 @@ describe('#getters', () => {
content: 'Thanks for the help',
created_at: 1574075964,
showAvatar: false,
message_type: 0,
},
{
id: 2,
content: 'Yes, It makes sense',
created_at: 1574092218,
showAvatar: true,
message_type: 0,
},
{
id: 3,
content: 'Hey',
created_at: 1574092218,
showAvatar: true,
message_type: 1,
},
],
},
@@ -101,13 +118,13 @@ describe('#getters', () => {
date: 'Dec 14, 2019',
messages: [
{
id: 3,
id: 4,
content: 'Hey',
created_at: 1576340623,
showAvatar: false,
},
{
id: 4,
id: 5,
content: 'How may I help you',
created_at: 1576340626,
showAvatar: true,