You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposal is to support a new intent (ViewChat) to open an existing chat room. (The chat will be displayed)
Intent name: ViewChat
Display Name: View Chat
Contexts
This intent could take as input types:
either a fdc3.chat.room (Created and returned by the 'StartChat' intent)
either a fdc3.contact: It will open the direct chat where there is the current user and the contact
either a fdc3.contactList: It will open the room where there is the current user and the listed contacts. Contact List may need to display search results if there are multiple matches.
This intent could return as output:
If the chat doesn't exist, will display a modal to create a chat
if the chat gets created, return its ChatRoom context
if none is created return void (rather than throw an error, which will stop the IntentResolution returning)
constchatRoom={type: 'fdc3.chat.room',providerName: "Symphony",roomId: "j75xqXy25NBOdacUI3FNBH"}constintentResolution=awaitfdc3.raiseIntent('ViewChat',chatRoom);constchatRoom=intentResolution.getResult(): // A chatRoom will be returned as context if the room was found
Context: Contact
Property
Type
Required
Example Value
type
string
Yes
'fdc3.contact'
name
string
No
'Jane Doe'
id.email
string
Yes
'jane@mail.com'
Example
constcontact={type: 'fdc3.contact',name: 'Jane Doe',id: {email: 'jane@mail.com'}}constintentResolution=awaitfdc3.raiseIntent('ViewChat',contact);constchatRoom=intentResolution.getResult(): // A chatRoom will be returned as context if the direct chat was found
Context: ContactList
Property
Type
Required
Example Value
type
string
Yes
'fdc3.contactList'
contacts
Contact[]
Yes
'[contact1, contact2]'
Example
constcontacts={type: 'fdc3.contactList',contacts: [{type: 'fdc3.contact',name: 'Jane Doe',id: {email: 'jane.doe@mail.com'}},{type: 'fdc3.contact',name: 'John Doe',id: {email: 'john.doe@mail.com'}},]}constintentResolution=awaitfdc3.raiseIntent('ViewChat',contacts);constchatRoom=intentResolution.getResult(): // A chatRoom will be returned as context if the room was found
Additional Information
No room found
In case the ViewChat can't open the room:
Invalid ChatRoom identifier
Unknown contact email
No room exists with the listed contact(s)
Then no room will be displayed, and void will be returned. (It will be translated as 'undefined' in Typescript)
Example:
constchatRoom={type: "fdc3.chat.room",providerName: "Symphony",roomId: "A_INVALID_REF"}constintentResolution=awaitfdc3.raiseIntent('ViewChat',chatRoom);constcontext=intentResolution.getResult(): // The chat room was not found, and none was created
The text was updated successfully, but these errors were encountered:
Enhancement Request
Use Case:
Users may want to open an existing chat room.
Intents
ViewChat
The proposal is to support a new intent (ViewChat) to open an existing chat room. (The chat will be displayed)
Intent name: ViewChat
Display Name: View Chat
Contexts
This intent could take as input types:
This intent could return as output:
Context: ChatRoom
('ChatRoom' related ticket: #765)
type
'fdc3.chat.room'
providerName
Symphony
roomId
j75xqXy25NBOdacUI3FNBH
uri
'http://symphony.com/ref/room/j75xqXy25NBOdacUI3FNBH___pqSsuJRdA'
name
'My room'
Example
Context: Contact
type
'fdc3.contact'
name
'Jane Doe'
id.email
'jane@mail.com'
Example
Context: ContactList
type
'fdc3.contactList'
contacts
'[contact1, contact2]'
Example
Additional Information
No room found
In case the
ViewChat
can't open the room:Then no room will be displayed, and
void
will be returned. (It will be translated as 'undefined' in Typescript)Example:
The text was updated successfully, but these errors were encountered: