We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1487ca4 commit 5e3521cCopy full SHA for 5e3521c
pkg/connector/mclient.go
@@ -33,7 +33,7 @@ import (
33
34
type newMCFunc = func(json.RawMessage, mWAClient) mClient
35
36
-var newMC newMCFunc
+var NewMC newMCFunc
37
38
func init() {
39
path := os.Getenv("WM_PLUGIN_PATH")
@@ -42,12 +42,12 @@ func init() {
42
}
43
plug := exerrors.Must(plugin.Open(path))
44
sym := exerrors.Must(plug.Lookup("NewClient"))
45
- newMC = sym.(newMCFunc)
+ NewMC = sym.(newMCFunc)
46
47
48
func (wa *WhatsAppClient) initMC() {
49
- if newMC != nil {
50
- wa.MC = newMC(wa.UserLogin.Metadata.(*waid.UserLoginMetadata).MData, wa)
+ if NewMC != nil {
+ wa.MC = NewMC(wa.UserLogin.Metadata.(*waid.UserLoginMetadata).MData, wa)
51
52
53
0 commit comments