Skip to content

Commit

Permalink
signalmeow: don't update e164 if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jun 25, 2024
1 parent 0b0379a commit 43ee1bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/signalmeow/receiving.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,12 @@ func (cli *Client) decryptUnidentifiedSenderEnvelope(ctx context.Context, destin
ctx = log.WithContext(ctx)
log.Trace().Msg("Received SealedSender message")

cli.Store.RecipientStore.UpdateRecipientE164(ctx, senderUUID, uuid.Nil, senderE164)
if senderE164 != "" {
_, err = cli.Store.RecipientStore.UpdateRecipientE164(ctx, senderUUID, uuid.Nil, senderE164)
if err != nil {
log.Warn().Err(err).Msg("Failed to update sender E164 in recipient store")
}
}

switch messageType {
case libsignalgo.CiphertextMessageTypeSenderKey:
Expand Down

0 comments on commit 43ee1bb

Please sign in to comment.