Returns the searched groupname or username when a user enters a name in the searchbox
A user can create a group with minimum 3 users. The method allows you to create a conversation group with the specified users.
Closes all popovers
Disposes all subscriptions of the controller socket methods
Focusses on the search box
Initializes recent tabs section
When a user clicks on a user or a group, it sets the index of the clicked upon element from the list as selected index, denoting the particular element is selected.
Index of conversation in the list of conversations the user has had
User details are passed. The method returns the profile image of other user if present, otherwise default image is shown.
Details of the other user
An image object
User details are passed. otherUsersOnlineStatus() returns which class must be applied according to the status of other user if p2p, else applies class for group.
Status of user if p2p or else a group
An individual user has a list of all the conversations he has had till now. The removeUserRecent method allows a user to remove a conversation group from your list from the recent chats.
Details of the conversation to be removed from your list
Displays the profile of a particular user
Details of the user whose profile is to be displayed
When a user clicks on a username or a group name, startChat opens up an existing conversation with a particular user or group.
Details of the conversation
null
Returns the count of total online users in a particular group
Array of users in group conversation
Returns the count of total online users in a particular group
A user may have many unread messages. totalUnreadMessages returns the count of unread messages including all groups.
ID of the conversation group
A numeric count of total unread messages
Registers recentComponent as a component into knockout