Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-iphone
Commits
01614301
Commit
01614301
authored
Apr 12, 2021
by
DanmeiChen
Browse files
enable display image if vfs not enabled
parent
deb245bc
Pipeline
#27676
failed with stage
in 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Classes/LinphoneUI/UIChatBubblePhotoCell.m
Classes/LinphoneUI/UIChatBubblePhotoCell.m
+1
-1
Classes/LinphoneUI/UIChatBubbleTextCell.m
Classes/LinphoneUI/UIChatBubbleTextCell.m
+2
-2
No files found.
Classes/LinphoneUI/UIChatBubblePhotoCell.m
View file @
01614301
...
...
@@ -203,7 +203,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100;
NSString
*
fileName
=
[
NSString
stringWithUTF8String
:
linphone_content_get_name
(
fileContent
)];
if
(
!
filePath
)
{
char
*
cPath
=
linphone_content_get_plain_file_path
(
fileContent
);
char
*
cPath
=
[[
LinphoneManager
instance
]
lpConfigBoolForKey
:
@"vfs_enabled_preference"
]
?
linphone_content_get_plain_file_path
(
fileContent
)
:
NULL
;
if
(
cPath
)
{
filePath
=
[
NSString
stringWithUTF8String
:
cPath
];
ms_free
(
cPath
);
...
...
Classes/LinphoneUI/UIChatBubbleTextCell.m
View file @
01614301
...
...
@@ -287,9 +287,9 @@
dispatch_async
(
dispatch_get_main_queue
(),
^
{
LinphoneContent
*
fileContent
=
linphone_chat_message_get_file_transfer_information
(
_message
);
NSData
*
data
=
NULL
;
char
*
cPath
=
linphone_content_get_plain_file_path
(
fileContent
);
char
*
cPath
=
[[
LinphoneManager
instance
]
lpConfigBoolForKey
:
@"vfs_enabled_preference"
]
?
linphone_content_get_plain_file_path
(
fileContent
)
:
NULL
;
if
(
cPath
)
{
NSString
*
filePath
=
[
NSString
stringWithUTF8String
:
linphone_content_get_plain_file_path
(
fileContent
)
];
NSString
*
filePath
=
[
NSString
stringWithUTF8String
:
cPath
];
data
=
[
NSData
dataWithContentsOfFile
:
filePath
];
ms_free
(
cPath
);
[[
NSFileManager
defaultManager
]
removeItemAtPath
:
filePath
error
:
NULL
];
...
...
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