agora-appbuilder-core 4.0.16 → 4.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -444,6 +444,12 @@ const WhiteboardConfigure: React.FC<WhiteboardPropsInterface> = props => {
|
|
|
444
444
|
sendLastImageUploadPositionToRemoteUsers(0);
|
|
445
445
|
};
|
|
446
446
|
|
|
447
|
+
useEffect(() => {
|
|
448
|
+
if (!whiteboardActive && isWhiteboardOnFullScreen) {
|
|
449
|
+
setWhiteboardOnFullScreen(false);
|
|
450
|
+
}
|
|
451
|
+
}, [whiteboardActive]);
|
|
452
|
+
|
|
447
453
|
return (
|
|
448
454
|
<whiteboardContext.Provider
|
|
449
455
|
value={{
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
ChatMessage,
|
|
21
21
|
ChatMessageChatType,
|
|
22
22
|
} from 'react-native-agora-chat';
|
|
23
|
+
import {isAndroid} from '../../utils/common';
|
|
23
24
|
|
|
24
25
|
import {
|
|
25
26
|
chatUploadErrorToastHeading,
|
|
@@ -159,7 +160,9 @@ export const ChatAttachmentButton = (props: ChatAttachmentButtonProps) => {
|
|
|
159
160
|
msgId: message.msgId,
|
|
160
161
|
isDeleted: false,
|
|
161
162
|
type: message.body.type,
|
|
162
|
-
thumb:
|
|
163
|
+
thumb: isAndroid()
|
|
164
|
+
? 'file://' + message.body?.localPath
|
|
165
|
+
: message.body?.localPath,
|
|
163
166
|
url: message.body?.remotePath,
|
|
164
167
|
ext: message.attributes?.file_ext,
|
|
165
168
|
fileName: message.attributes?.file_name,
|
|
@@ -115,7 +115,7 @@ export const ChatAttachmentButton = (props: ChatAttachmentButtonProps) => {
|
|
|
115
115
|
<>
|
|
116
116
|
<input
|
|
117
117
|
type="file"
|
|
118
|
-
accept="image/jpeg, image/png, image/gif, image/bmp, .zip, .txt, .doc, .pdf, .docx, .ppt, .pptx, .xls, .xlsx .csv"
|
|
118
|
+
accept="image/jpeg, image/png, image/gif, image/bmp, .zip, .txt, .doc, .pdf, .docx, .ppt, .pptx, .xls, .xlsx, .csv"
|
|
119
119
|
onChange={handleFileUpload}
|
|
120
120
|
style={{display: 'none'}}
|
|
121
121
|
id={`file-input-`}
|