Skip to content

BREAKING CHANGE v0.25 Room.say(text: string, mention: Contact[]) deprecated #1730

@windmemory

Description

@windmemory

BREAKING CHANGE:

room.say() function no longer accept arguments like below:

room.say(text: string, mention: Contact[])

Alternative solution

To mention multiple contacts when sending out text messages, there are two new ways of doing that:

room.say(text: string, ...mentionList: Contact[])

Sample code:

// Assume you got there Contact instance
// contactA assume the name is Alex
// contactB assume the name is Bob
// contactC assume the name is Carson
await room.say('let\'s party', contactA, contactB, contactC)

Send out text will be

@Alex @Bob @Carson let's party

Tagged Template

Sample code:

// Assume you got there Contact instance
// contactA assume the name is Alex
// contactB assume the name is Bob
// contactC assume the name is Carson
room.say`Hello ${contactA} and ${contactB}, this is ${contactC}`

Send out text will be

Hello @Alex and @Bob, this is @Carson

Refer to #1729

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions