mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Refactor code
This commit is contained in:
parent
0891e2d432
commit
943f58f2c0
@ -23,7 +23,7 @@ func InsertIntoGroupMember(toInsertInfo GroupMember) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
toInsertInfo.JoinSource = time.Now()
|
toInsertInfo.JoinTime = time.Now()
|
||||||
if toInsertInfo.RoleLevel == 0 {
|
if toInsertInfo.RoleLevel == 0 {
|
||||||
toInsertInfo.RoleLevel = constant.GroupOrdinaryUsers
|
toInsertInfo.RoleLevel = constant.GroupOrdinaryUsers
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user