File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,11 @@ func (cli *Client) handleCallEvent(node *waBinary.Node) {
83
83
Reason : cag .String ("reason" ),
84
84
Data : & child ,
85
85
})
86
+ case "reject" :
87
+ cli .dispatchEvent (& events.CallReject {
88
+ BasicCallMeta : basicMeta ,
89
+ Data : & child ,
90
+ })
86
91
default :
87
92
cli .dispatchEvent (& events.UnknownCallEvent {Node : node })
88
93
}
Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ type CallTerminate struct {
65
65
Data * waBinary.Node
66
66
}
67
67
68
+ // CallReject is sent when the other party rejects the call on WhatsApp.
69
+ type CallReject struct {
70
+ types.BasicCallMeta
71
+ Data * waBinary.Node
72
+ }
73
+
68
74
// UnknownCallEvent is emitted when a call element with unknown content is received.
69
75
type UnknownCallEvent struct {
70
76
Node * waBinary.Node
You can’t perform that action at this time.
0 commit comments