【发布时间】:2022-01-27 08:58:30
【问题描述】:
我正在使用带有 ejabberd xmpp 服务器后端的 conversejs。我正在尝试找到一种方法来禁用用户在线/用户离线消息出现在用户之间的聊天中。人们正在经历的重新连接的数量正在堵塞消息框,以至于导致用户出现问题。在线和离线通知对于我使用聊天的目的不是必需的,所以我想知道是否有我缺少的初始化选项来禁用它们或其他解决方法。我目前使用的初始化选项是:
bosh_service_url: 'xxxxxxx',
view_mode: 'overlayed',
message_archiving: 'always',
auto_login: true,
auto_reconnect: true,
credentials_url: 'xxxxxxx',
clear_cache_on_logout: true,
notify_all_room_messages: true,
play_sounds: true,
allow_contact_removal: false,
allow_logout: false,
allow_muc_invitations: false,
allow_registration: false,
allow_contact_requests: false,
send_chat_state_notifications: false,
show_tab_notifications: false,
clear_messages_on_reconnection: true,
idle_presence_timeout: 0
【问题讨论】:
标签: ejabberd converse.js