Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
we are not yet ready for go 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Feb 20, 2022
1 parent f8e0794 commit ae9b480
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/signal-golang/textsecure

go 1.16
go 1.15

require (
github.com/go-redis/redis v6.15.7+incompatible
Expand Down
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"mime/quotedprintable"
"strconv"
"strings"
Expand Down Expand Up @@ -646,7 +646,7 @@ func GetRegisteredContacts() ([]contacts.Contact, error) {
UUID := idToHexUUID(responseData[ind*uuidlength : (ind+1)*uuidlength])
index := findIndexByE147(phone, localContacts)
if strings.Count(localContacts[index].Name, "=") > 2 {
decodedName, err := io.ReadAll(quotedprintable.NewReader(strings.NewReader(localContacts[index].Name)))
decodedName, err := ioutil.ReadAll(quotedprintable.NewReader(strings.NewReader(localContacts[index].Name)))
if err != nil {
log.Debug("[textsecure] GetRegisteredContacts update name from quoted printable error:", err)
} else {
Expand Down

0 comments on commit ae9b480

Please sign in to comment.