diff --git a/internal/rpc/friend/friend.go b/internal/rpc/friend/friend.go index 14b1791ad..66d74eb12 100644 --- a/internal/rpc/friend/friend.go +++ b/internal/rpc/friend/friend.go @@ -17,8 +17,6 @@ package friend import ( "context" "github.com/OpenIMSDK/protocol/wrapperspb" - "strconv" - "github.com/OpenIMSDK/tools/tx" "github.com/OpenIMSDK/protocol/sdkws" @@ -411,7 +409,7 @@ func (s *friendServer) GetSpecifiedFriendsInfo(ctx context.Context, req *pbfrien if friend := friendMap[userID]; friend != nil { var isPinnedBool bool if friend.IsPinned != nil { - isPinnedBool, _ = strconv.ParseBool(*friend.IsPinned) // ignoring error for simplicity + isPinnedBool = *friend.IsPinned // ignoring error for simplicity } friendInfo = &sdkws.FriendInfo{ OwnerUserID: friend.OwnerUserID,