mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-26 14:44:15 +00:00
Add notify-self-flag support for json-rpc mode
This commit is contained in:
parent
6e78758510
commit
7cfc53cad9
@ -461,7 +461,10 @@ func (s *SignalClient) send(signalCliSendRequest ds.SignalCliSendRequest) (*Send
|
|||||||
request.Attachments = append(request.Attachments, attachmentEntry.toDataForSignal())
|
request.Attachments = append(request.Attachments, attachmentEntry.toDataForSignal())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// for backwards compatibility, if flag is not set we'll assume that self notification is desired
|
||||||
|
if signalCliSendRequest.NotifySelf == nil || *signalCliSendRequest.NotifySelf {
|
||||||
request.NotifySelf = true
|
request.NotifySelf = true
|
||||||
|
}
|
||||||
|
|
||||||
request.Sticker = signalCliSendRequest.Sticker
|
request.Sticker = signalCliSendRequest.Sticker
|
||||||
if signalCliSendRequest.Mentions != nil {
|
if signalCliSendRequest.Mentions != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user