Index

src/utils/utils.ts

compareValues
compareValues(key: , order: )
Parameters :
Name Type Optional Description
key
order
contactsRef
contactsRef(tenant: )

chiamata da ChatContactsSynchronizer restituisce url '/contacts'

Parameters :
Name Type Optional Description
tenant
conversationMessagesRef
conversationMessagesRef(tenant: , userId: )

chiamata da ChatConversationHandler restituisce url '/messages'

Parameters :
Name Type Optional Description
tenant
userId
conversationsPathForUserId
conversationsPathForUserId(tenant: , userId: )

chiamata da ChatConversationsHandler restituisce url '/conversations'

Parameters :
Name Type Optional Description
tenant
userId
convertDayToString
convertDayToString(day: )
Parameters :
Name Type Optional Description
day
getFromNow
getFromNow(timestamp: )
Parameters :
Name Type Optional Description
timestamp
getNowTimestamp
getNowTimestamp()
removeHtmlTags
removeHtmlTags(text: )

rimuove il tag html dal testo ATTUALMENTE NON USATA

Parameters :
Name Type Optional Description
text
searchIndexInArrayForUid
searchIndexInArrayForUid(items: , key: )

restituiso indice item nell'array con uid == key

Parameters :
Name Type Optional Description
items
key
setHeaderDate
setHeaderDate(timestamp: , lastDate: )

calcolo il tempo trascorso tra due date e lo formatto come segue: gg/mm/aaaa; oggi; ieri; giorno della settimana (lunedì, martedì, ecc)

Parameters :
Name Type Optional Description
timestamp
lastDate
setLastDate
setLastDate(timestamp: )

calcolo il tempo trascorso tra la data passata e adesso utilizzata per calcolare data ultimo accesso utente

Parameters :
Name Type Optional Description
timestamp
urlify
urlify(text: )

trasforma url contenuti nel testo passato in tag

Parameters :
Name Type Optional Description
text
windowsMatchMedia
windowsMatchMedia()

results matching ""

    No results matching ""