dengbiao 1 settimana fa
parent
commit
70cf69c4c5
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. +11
    -0
      internal/logic/domain/group/model/group.go

+ 11
- 0
internal/logic/domain/group/model/group.go Vedi File

@@ -454,9 +454,20 @@ func (g *Group) PushAddMember(ctx context.Context, optUserId int64, addedIds []i
//
optUser := usersResp.Users[optUserId]
if optUserId == -1 {
if optUser == nil {
optUser = &pb.User{
UserId: optUserId,
}
optUser = &pb.User{}
}
optUser.Nickname = "后台操作"
}
if optUserId == -2 {
if optUser == nil {
optUser = &pb.User{
UserId: optUserId,
}
}
optUser.Nickname = "扫码加入"
}
err = g.PushMessage(ctx, pb.PushCode_PC_ADD_GROUP_MEMBERS, &pb.AddGroupMembersPush{


Caricamento…
Annulla
Salva