Merge pull request #612 from ahatius/master

Add notify-self-flag support for json-rpc mode
This commit is contained in:
Bernhard B. 2024-11-11 22:44:24 +01:00 committed by GitHub
commit 3344268a59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -461,7 +461,10 @@ func (s *SignalClient) send(signalCliSendRequest ds.SignalCliSendRequest) (*Send
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.Sticker = signalCliSendRequest.Sticker
if signalCliSendRequest.Mentions != nil {