Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4debd6cf
authored
Jul 09, 2025
by
pidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复在聊天室内收到图片不显示的问题
parent
a5703a44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Model/FUSChatDetailFrameModel.m
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Other/FUSIMChatService.m
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Model/FUSChatDetailFrameModel.m
View file @
4debd6cf
...
...
@@ -37,8 +37,12 @@
-
(
void
)
setMsgModel
:(
FUSChatDetailMessageModel
*
)
msgModel
{
_msgModel
=
msgModel
;
if
([
msgModel
isKindOfClass
:[
NSDictionary
class
]])
{
msgModel
=
[
FUSChatDetailMessageModel
fus_modelWithDict
:(
NSDictionary
*
)
msgModel
];
}
_msgModel
=
msgModel
;
// 系统消息的Frame(默认为zero)
_systemNoticeBgFrame
=
CGRectZero
;
...
...
@@ -58,7 +62,7 @@
_msgPaidInfoFrame
=
CGRectZero
;
//时间的Frame
if
(
msgModel
.
messageNeedShowTime
==
YES
)
{
if
(
_
msgModel
.
messageNeedShowTime
==
YES
)
{
CGFloat
timeFrameW
=
[
msgModel
.
messageTime
sizeWithFont
:
timeFont
maxWidth
:
timeW
].
width
+
All_MSG_PADDING
*
1
.
5
;
CGFloat
timeFrameH
=
timeH
;
CGFloat
timeFrameX
=
UIView
.
fus_screenW
/
2
-
timeFrameW
/
2
;
...
...
@@ -69,7 +73,7 @@
}
//系统消息是没有头像的
if
(
msgModel
.
messageContentType
==
FUSMsgContentTypeSystemNotice
)
{
if
(
_
msgModel
.
messageContentType
==
FUSMsgContentTypeSystemNotice
)
{
// 计算宽高
NSMutableAttributedString
*
muAttrString
=
[
FUSIMChatCellHelper
getColorAttributedStringFromString
:
msgModel
.
systemNoticeWords
];
CGSize
bgSysNoticeSize
=
[
YYTextLayout
layoutWithContainerSize
:
CGSizeMake
(
systemNoticeW
,
MAXFLOAT
)
text
:
muAttrString
].
textBoundingSize
;
...
...
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Other/FUSIMChatService.m
View file @
4debd6cf
...
...
@@ -1298,7 +1298,7 @@ typedef NS_ENUM(NSInteger, FUSIMChatMessageType) {
msgModel
.
thumb
=
[
UIImage
imageWithContentsOfFile
:
body
.
thumbnailLocalPath
];
// 针对那些重启之后缩略图依然下载失败的情况
if
(
(
body
.
thumbnailDownloadStatus
==
EMDownloadStatusPending
||
body
.
thumbnailDownloadStatus
==
EMDownloadStatusFailed
)
&&
!
msgModel
.
thumb
)
{
if
(
!
msgModel
.
thumb
&&
!
msgModel
.
image
)
{
[[
EMClient
sharedClient
].
chatManager
downloadMessageThumbnail
:
message
progress
:
nil
completion
:^
(
EMMessage
*
message
,
EMError
*
error
)
{
if
(
!
error
)
{
[
self
fus_didReceiveFileMessageWithTalkObj
:
self
.
currentTalkObj
messageObj
:
message
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment