mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
debug
This commit is contained in:
parent
fc02fe9baf
commit
650587ef39
@ -17,8 +17,6 @@ package friend
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/OpenIMSDK/protocol/wrapperspb"
|
"github.com/OpenIMSDK/protocol/wrapperspb"
|
||||||
"strconv"
|
|
||||||
|
|
||||||
"github.com/OpenIMSDK/tools/tx"
|
"github.com/OpenIMSDK/tools/tx"
|
||||||
|
|
||||||
"github.com/OpenIMSDK/protocol/sdkws"
|
"github.com/OpenIMSDK/protocol/sdkws"
|
||||||
@ -411,7 +409,7 @@ func (s *friendServer) GetSpecifiedFriendsInfo(ctx context.Context, req *pbfrien
|
|||||||
if friend := friendMap[userID]; friend != nil {
|
if friend := friendMap[userID]; friend != nil {
|
||||||
var isPinnedBool bool
|
var isPinnedBool bool
|
||||||
if friend.IsPinned != nil {
|
if friend.IsPinned != nil {
|
||||||
isPinnedBool, _ = strconv.ParseBool(*friend.IsPinned) // ignoring error for simplicity
|
isPinnedBool = *friend.IsPinned // ignoring error for simplicity
|
||||||
}
|
}
|
||||||
friendInfo = &sdkws.FriendInfo{
|
friendInfo = &sdkws.FriendInfo{
|
||||||
OwnerUserID: friend.OwnerUserID,
|
OwnerUserID: friend.OwnerUserID,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user