Options
All
  • Public
  • Public/Protected
  • All
Menu

Registers recentComponent as a component into knockout

Hierarchy

  • recentController

Index

Constructors

constructor

Properties

Private CreteChatGrpModal

CreteChatGrpModal: KnockoutObservable<boolean> = ko.observable(false)

Private Query

Query: any = ko.observable("")

Private TransferUsers

TransferUsers: any = ko.observableArray([])

Private _env

_env: any = ko.observable(appConfig.env)

Private allUsersArray

allUsersArray: any = ko.observableArray([])

Private allUsersNameArray

allUsersNameArray: any = ko.observableArray([])

Private currentChatId

currentChatId: any = ko.observable(null)

Private current_user

current_user: any = ko.observable("")

Private current_user_obj

current_user_obj: any = ko.observable({})

Private groupUsersList

groupUsersList: any = ko.observableArray([])

Private group_users

group_users: any = ko.observableArray([])

Private historyArray

historyArray: KnockoutObservableArray<collab.component.IChatHistory> = ko.observableArray([])

Private isCollapsed

isCollapsed: KnockoutObservable<boolean> = ko.observable(true)

Private playMessageTone

playMessageTone: KnockoutObservable<boolean> = ko.observable(false)

Private previous_title

previous_title: string = document.title

searchResults

searchResults: any = ko.computed(() => {const q = this.Query().toLowerCase();return this.historyArray().filter((i: any) => {return i.subject.toLowerCase().indexOf(q) >= 0;});})

Returns the searched groupname or username when a user enters a name in the searchbox

function

searchResults

returns

Returns the searched groupname or username

Private selectedIndex

selectedIndex: any = ko.observable(0)

Private showChatComponent

showChatComponent: any = ko.observable(false)

Private showExpandCollapseIcon

showExpandCollapseIcon: KnockoutObservable<boolean> = ko.observable(true)

Private showLoader

showLoader: any = ko.observable(false)

Private showSpinner

showSpinner: KnockoutObservable<boolean> = ko.observable(true)

Private subject

subject: any = ko.observable("")

Private subscriptions

subscriptions: Array<any> = []

Private typingGroupId

typingGroupId: any = ko.observable("")

Private typingUserName

typingUserName: any = ko.observable("")

Private unread_messages

unread_messages: any = ko.observable("")

Methods

changeIcon

  • changeIcon(): void

chatGroupCreation

  • chatGroupCreation(): void

closePopover

  • closePopover(): void

dispose

  • dispose(): void

focusOnSearch

  • focusOnSearch(): void

init

  • init(): void

onIndexSelected

  • onIndexSelected(index: any): void

otherUserProfileImage

  • otherUserProfileImage(data: any): any

otherUsersOnlineStatus

  • otherUsersOnlineStatus(data: any): "_online" | "_offline" | "_away" | "_group"

removeUserRecent

  • removeUserRecent(res: any): void
  • 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.

    Parameters

    • res: any

      Details of the conversation to be removed from your list

    Returns void

selectOptionStyling

  • selectOptionStyling(option: any, item: any): void

showProfile

  • showProfile(data: any): void

startChat

  • startChat(chatIndex: collab.component.IChatHistory, index?: number): void

totalOnlineUsers

  • totalOnlineUsers(data: any): any

totalUnreadMessages

  • totalUnreadMessages(groupId: string): any