Skip to content

Commit 17aab14

Browse files
committed
Use channel role
1 parent eb6c88c commit 17aab14

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

__tests__/member-message-role.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ describe('member message role propagation', () => {
1515
const user1 = {
1616
id: 'stream-node-role-user1-' + uuidv4(),
1717
name: 'Stream Node Role User 1',
18-
role: 'custom_role',
18+
channel_role: 'custom_role',
1919
};
2020

2121
const user2 = {
2222
id: 'stream-node-role-user2-' + uuidv4(),
2323
name: 'Stream Node Role User 2',
24-
role: 'user',
2524
};
2625

2726
let messageId1: string | undefined;
@@ -30,10 +29,8 @@ describe('member message role propagation', () => {
3029
beforeAll(async () => {
3130
client = createTestClient();
3231

33-
// upsert both users with their roles
3432
await client.upsertUsers([user1, user2]);
3533

36-
// create channel with both members
3734
channel = client.chat.channel('messaging', channelId);
3835

3936
await channel.getOrCreate({

0 commit comments

Comments
 (0)