Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
0241d9e6
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
339
Star
10
Fork
6
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0241d9e6
编写于
6月 25, 2021
作者:
楼
楼国栋
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix/im_js_bug' into 'wrdp'
修复web端IM聊天的一个bug See merge request o2oa/o2oa!4220
上级
c6fc6712
079e97b2
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
26 addition
and
20 deletion
+26
-20
o2server/x_message_assemble_communicate/src/main/java/com/x/message/assemble/communicate/jaxrs/im/ActionConversationCreate.java
...semble/communicate/jaxrs/im/ActionConversationCreate.java
+2
-1
o2web/source/x_component_IMV2/$Main/default/style.css
o2web/source/x_component_IMV2/$Main/default/style.css
+3
-0
o2web/source/x_component_IMV2/Main.js
o2web/source/x_component_IMV2/Main.js
+21
-19
未找到文件。
o2server/x_message_assemble_communicate/src/main/java/com/x/message/assemble/communicate/jaxrs/im/ActionConversationCreate.java
浏览文件 @
0241d9e6
...
...
@@ -83,9 +83,10 @@ public class ActionConversationCreate extends BaseAction {
}
else
{
for
(
int
i
=
0
;
i
<
conversation
.
getPersonList
().
size
();
i
++)
{
String
person
=
conversation
.
getPersonList
().
get
(
i
);
if
(
i
>
3
)
{
if
(
i
==
3
)
{
title
+=
person
.
substring
(
0
,
person
.
indexOf
(
"@"
));
title
+=
"..."
;
break
;
}
else
{
title
+=
person
.
substring
(
0
,
person
.
indexOf
(
"@"
))
+
"、"
;
}
...
...
o2web/source/x_component_IMV2/$Main/default/style.css
浏览文件 @
0241d9e6
...
...
@@ -145,6 +145,9 @@
float
:
left
;
color
:
rgb
(
51
,
51
,
51
);
overflow
:
hidden
;
max-width
:
170px
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.o2_im_chat_list
.item
.body_up
.body_time
{
float
:
right
;
...
...
o2web/source/x_component_IMV2/Main.js
浏览文件 @
0241d9e6
...
...
@@ -883,6 +883,7 @@ MWF.xApplication.IMV2.ConversationItem = new Class({
* @param {*} lastMessage
*/
refreshLastMsg
:
function
(
lastMessage
)
{
if
(
lastMessage
)
{
//目前是text 类型的消息
var
jsonbody
=
lastMessage
.
body
;
var
body
=
JSON
.
parse
(
jsonbody
);
...
...
@@ -907,6 +908,7 @@ MWF.xApplication.IMV2.ConversationItem = new Class({
if
(
this
.
messageTimeNode
)
{
this
.
messageTimeNode
.
set
(
"
text
"
,
time
);
}
}
},
// 更新聊天窗口上的标题 修改标题的时候使用 @Disuse 使用refreshData
refreshConvTitle
:
function
(
title
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录