pull/1532/head
AndrewZuo01 2 years ago
parent fc02fe9baf
commit 650587ef39

@ -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,

Loading…
Cancel
Save