Skip to content

Commit

Permalink
fixed bug in send method
Browse files Browse the repository at this point in the history
* allow notify self not only when sending a message to a group, but also
  to individual recipients.

see #654
  • Loading branch information
bbernhard committed Feb 9, 2025
1 parent 42f10c3 commit 845ea54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ func (s *SignalClient) SendV2(number string, message string, recps []string, bas
signalCliSendRequest := ds.SignalCliSendRequest{Number: number, Message: message, Recipients: numbers, Base64Attachments: base64Attachments,
RecipientType: ds.Number, Sticker: sticker, Mentions: mentions, QuoteTimestamp: quoteTimestamp,
QuoteAuthor: quoteAuthor, QuoteMessage: quoteMessage, QuoteMentions: quoteMentions,
TextMode: textMode, EditTimestamp: editTimestamp}
TextMode: textMode, EditTimestamp: editTimestamp, NotifySelf: notifySelf}
timestamp, err := s.send(signalCliSendRequest)
if err != nil {
return nil, err
Expand All @@ -802,7 +802,7 @@ func (s *SignalClient) SendV2(number string, message string, recps []string, bas
signalCliSendRequest := ds.SignalCliSendRequest{Number: number, Message: message, Recipients: usernames, Base64Attachments: base64Attachments,
RecipientType: ds.Username, Sticker: sticker, Mentions: mentions, QuoteTimestamp: quoteTimestamp,
QuoteAuthor: quoteAuthor, QuoteMessage: quoteMessage, QuoteMentions: quoteMentions,
TextMode: textMode, EditTimestamp: editTimestamp}
TextMode: textMode, EditTimestamp: editTimestamp, NotifySelf: notifySelf}
timestamp, err := s.send(signalCliSendRequest)
if err != nil {
return nil, err
Expand Down

0 comments on commit 845ea54

Please sign in to comment.