openimsdk / openim-sdk-electron

Apache License 2.0
2 stars 4 forks source link

[FEATURE REQUEST] Added information from local database #7

Open Ayloss opened 2 weeks ago

Ayloss commented 2 weeks ago

Why this feature?

我看electron的sdk会在指定的数据目录下创建sqlite数据库,但SDK中似乎只提供了从网络请求中获取数据的方法。 期望增加直接从数据库中读取本地缓存的方法,以便在数据部分同步失败或断网场景下能有初始数据。 image

Suggested Solution

例如SDK以下的接口: getFriendList getAllConversationList

增加从数据库获取的方法: getFriendListFromDB getAllConversationListFromDB

Additional Information

No response

Bloomingg commented 2 days ago

In fact, it is now obtained from the local db.