【发布时间】:2023-03-05 13:20:02
【问题描述】:
我正在使用 converse.js 提供聊天功能。我正在寻找一种方法来添加回复特定聊天室消息。有谁知道我该怎么做?
例如: 在组 user1 中发送:你好 并且 user2 想要回复此消息并打个招呼
我的初始代码:
<script>
converse.initialize({
authentication: 'login',
//
auto_login: true,
allow_logout: false,
show_client_info: false,
allow_adhoc_commands: false,
allow_contact_requests: false,
hidden_occupants: true,
blacklisted_plugins: [
'converse-register',
'converse-rosterview',
'converse-bookmarks',
'converse-profile',
],
jid: "person@example.com",
password: "somepassword",
auto_join_rooms: [
{
'jid': 'group@conference.example.com',
'nick': 'myname',
'name': 'title',
'minimized': true
},
],
//
auto_reconnect: true,
bosh_service_url: 'https://example.com:7443/http-bind/',
message_archiving: 'always',
view_mode: 'fullscreen'
});
</script>
谢谢大家。
【问题讨论】:
-
从客户端或服务器端回复?也许给我们一个“第一次尝试”代码
-
来自客户端:例如:在组 user1 中发送:你好,用户 2 想回复这条消息并打个招呼