Skip to content

Commit

Permalink
fix: add the parameter "isOnlineOnly" to the "sendMessage" method. (#521
Browse files Browse the repository at this point in the history
)

* fix: add the parameter "isOnlineOnly" to the "sendMessage" method.

* fix: add the parameter "isOnlineOnly" to the "sendMessage" method.
  • Loading branch information
FGadvancer committed Feb 26, 2024
1 parent 71574b0 commit e3e27e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion wasm/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func registerFunc() {
js.Global().Set("markMessagesAsReadByMsgID", js.FuncOf(wrapperConMsg.MarkMessagesAsReadByMsgID))
js.Global().Set("sendMessage", js.FuncOf(wrapperConMsg.SendMessage))
js.Global().Set("sendMessageNotOss", js.FuncOf(wrapperConMsg.SendMessageNotOss))
js.Global().Set("sendMessageByBuffer", js.FuncOf(wrapperConMsg.SendMessageByBuffer))
//js.Global().Set("setMessageReactionExtensions", js.FuncOf(wrapperConMsg.SetMessageReactionExtensions))
//js.Global().Set("addMessageReactionExtensions", js.FuncOf(wrapperConMsg.AddMessageReactionExtensions))
//js.Global().Set("deleteMessageReactionExtensions", js.FuncOf(wrapperConMsg.DeleteMessageReactionExtensions))
Expand Down
4 changes: 0 additions & 4 deletions wasm/wasm_wrapper/wasm_conversation_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ func (w *WrapperConMsg) SendMessageNotOss(_ js.Value, args []js.Value) interface
callback := event_listener.NewSendMessageCallback(utils.FirstLower(utils.GetSelfFuncName()), w.commonFunc).SetClientMsgID(&args)
return event_listener.NewCaller(open_im_sdk.SendMessageNotOss, callback, &args).AsyncCallWithCallback()
}
func (w *WrapperConMsg) SendMessageByBuffer(_ js.Value, args []js.Value) interface{} {
callback := event_listener.NewSendMessageCallback(utils.FirstLower(utils.GetSelfFuncName()), w.commonFunc).SetClientMsgID(&args)
return event_listener.NewCaller(open_im_sdk.SendMessageByBuffer, callback, &args).AsyncCallWithCallback()
}

//funcation (w *WrapperConMsg) SetMessageReactionExtensions(_ js.Value, args []js.Value) interface{} {
// callback := event_listener.NewBaseCallback(utils.FirstLower(utils.GetSelfFuncName()), w.commonFunc)
Expand Down

0 comments on commit e3e27e9

Please sign in to comment.