mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
Bugfix for support attachment base64 and custom filename.
Introduce tests for attachment data parsing. Use tests at build stage.
This commit is contained in:
@@ -461,7 +461,7 @@ func (s *SignalClient) UnregisterNumber(number string, deleteAccount bool, delet
|
||||
command := []string{"--config", s.signalCliConfig, "-a", number, "deleteLocalAccountData"}
|
||||
_, err2 := s.cliClient.Execute(true, command, "")
|
||||
if (err2 != nil) && (err != nil) {
|
||||
err = fmt.Errorf("%w (%w)", err, err2)
|
||||
err = fmt.Errorf("%w (%s)", err, err2.Error())
|
||||
} else if (err2 != nil) && (err == nil) {
|
||||
err = err2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user