Skip to content

Commit 6358afc

Browse files
committed
支持删除文件传输助手
1 parent b8e5886 commit 6358afc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default class Config {
111111

112112
// 会话过期时间,表示一个会话,自己不再参与之后,多久会过期。会话列表不展示已过期的会话;单位是天
113113
static CONVERSATION_EXPIRE_TIME = 30;
114-
// 文件传输助手ID
114+
// 文件传输助手ID,如果不需要的话,将其置空即可
115115
static FILE_HELPER_ID = 'wfc_file_transfer';
116116
// 是否将用户信息、群组信息、频道信息、聊天室信息持久化
117117
static ENABLE_INFO_PERSISTENCE = false;

src/store.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ let store = {
15531553
_loadFriendList() {
15541554
let friends = wfc.getMyFriendList(false);
15551555
let fileHelperIndex = friends.indexOf(Config.FILE_HELPER_ID);
1556-
if (fileHelperIndex < 0) {
1556+
if (fileHelperIndex < 0 && Config.FILE_HELPER_ID) {
15571557
friends.push(Config.FILE_HELPER_ID);
15581558
}
15591559
if (friends && friends.length > 0) {

0 commit comments

Comments
 (0)