Skip to content

Commit

Permalink
feat: add table of sending message for set message status on weak net…
Browse files Browse the repository at this point in the history
… . (openimsdk#398)

Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
  • Loading branch information
FGadvancer authored and pagefau1t committed Nov 3, 2023
1 parent a0e362a commit 1fdbe26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/db/db_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func (d *DataBase) initDB(ctx context.Context, logLevel int) error {
&model_struct.LocalStranger{},
&model_struct.LocalSendingMessages{},
&model_struct.LocalGroupSaved{},
&model_struct.LocalSendingMessages{},
)
if err != nil {
return err
Expand Down
2 changes: 2 additions & 0 deletions pkg/db/db_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type IndexDB struct {
*indexdb.LocalStrangers
*indexdb.LocalSendingMessages
*indexdb.LocalGroupSaved
*indexdb.LocalSendingMessages
loginUserID string
}

Expand Down Expand Up @@ -77,6 +78,7 @@ func NewDataBase(ctx context.Context, loginUserID string, dbDir string, logLevel
LocalUpload: indexdb.NewLocalUpload(),
LocalStrangers: indexdb.NewLocalStrangers(),
LocalGroupSaved: indexdb.NewLocalGroupSaved(),
LocalSendingMessages: indexdb.NewLocalSendingMessages(),
loginUserID: loginUserID,
}
err := i.InitDB(ctx, loginUserID, dbDir)
Expand Down

0 comments on commit 1fdbe26

Please sign in to comment.