Skip to content

Commit

Permalink
fix(basic-message): assert connection is ready (#657)
Browse files Browse the repository at this point in the history
Signed-off-by: Karim <karim@animo.id>
  • Loading branch information
karimStekelenburg authored Mar 4, 2022
1 parent 15a5e6b commit 9f9156c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class BasicMessageService {
}

public async createMessage(message: string, connectionRecord: ConnectionRecord) {
connectionRecord.assertReady()
const basicMessage = new BasicMessage({ content: message })

const basicMessageRecord = new BasicMessageRecord({
Expand Down

0 comments on commit 9f9156c

Please sign in to comment.