diff --git a/pkg/common/db/unrelation/mongo.go b/pkg/common/db/unrelation/mongo.go index fc98b85eb..6f384417b 100644 --- a/pkg/common/db/unrelation/mongo.go +++ b/pkg/common/db/unrelation/mongo.go @@ -99,7 +99,7 @@ func (m *Mongo) createMongoIndex(collection string, isUnique bool, keys ...strin index := mongo.IndexModel{ Keys: keysDoc, } - if isUnique == true { + if isUnique { index.Options = options.Index().SetUnique(true) } result, err := indexView.CreateOne( diff --git a/pkg/proto/msg/msg.proto b/pkg/proto/msg/msg.proto index c38a6113c..28b3e3cb1 100644 --- a/pkg/proto/msg/msg.proto +++ b/pkg/proto/msg/msg.proto @@ -167,6 +167,11 @@ message RevokeMsgReq { message RevokeMsgResp { } +message DeleteSyncOpt { + bool IsSyncSelf = 3; + bool IsSyncOther = 4; +} + message ClearConversationsMsgReq { repeated string conversationIDs = 1; string userID = 2;