diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-09 19:49:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 19:49:27 -0400 |
commit | 9d5ad9bea36c0b2abffd04b25126d18158017137 (patch) | |
tree | 7d7c58cbdb67e3e0945a6ed2ccaa658f0048e887 /src/utils/common.ts | |
parent | a6580f418e87775a5e683e56735952df4f7fa5a9 (diff) | |
parent | ad9db5ffd0b2fb6334fd8237e0600a76d25c7053 (diff) |
Merge pull request #356 from shravyaramesh/tma767-message-button
[TMA767] Message button
Diffstat (limited to 'src/utils/common.ts')
-rw-r--r-- | src/utils/common.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/utils/common.ts b/src/utils/common.ts index 0900a084..7ae36dc6 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -173,21 +173,3 @@ const _crestIcon = (university: UniversityType) => { return require('../assets/images/bwbadges.png'); } }; - -export const createChannel = async ( - loggedInUser: string, - id: string, - chatClient: any, -) => { - console.log(loggedInUser, id, chatClient); - try { - const channel = chatClient.channel('messaging', { - members: [loggedInUser, id], - }); - await channel.watch(); - return channel; - } catch (error) { - console.log(error); - throw error; - } -}; |