mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-16 09:05:32 +08:00
Merge pull request #3334 from openimsdk/cherry-pick-52bd5e8
fix: transferring the group owner to a muted member, incremental version error [Created by @withchao from #3284]
This commit is contained in:
commit
a3ff727843
@ -283,7 +283,8 @@ func (g *NotificationSender) fillOpUserByUserID(ctx context.Context, userID stri
|
||||
|
||||
func (g *NotificationSender) setVersion(ctx context.Context, version *uint64, versionID *string, collName string, id string) {
|
||||
versions := versionctx.GetVersionLog(ctx).Get()
|
||||
for _, coll := range versions {
|
||||
for i := len(versions) - 1; i >= 0; i-- {
|
||||
coll := versions[i]
|
||||
if coll.Name == collName && coll.Doc.DID == id {
|
||||
*version = uint64(coll.Doc.Version)
|
||||
*versionID = coll.Doc.ID.Hex()
|
||||
|
Loading…
x
Reference in New Issue
Block a user