Skip to content

Commit 4067d0b

Browse files
v0.3.1-beta.6
1 parent 66a7c27 commit 4067d0b

File tree

7 files changed

+17
-210
lines changed

7 files changed

+17
-210
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quickblox-react-ui-kit",
3-
"version": "0.3.1-beta.5",
3+
"version": "0.3.1-beta.6",
44
"main": "dist/index-ui.js",
55
"license": "MIT",
66
"dependencies": {

src/Data/source/remote/RemoteDataSource.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,13 @@ export class RemoteDataSource implements IRemoteDataSource {
635635
};
636636
QB.chat.onMessageErrorListener = (messageId: string, error: unknown) => {
637637
console.log(
638-
`EVENT: receive error messageid: ${messageId}, error: ${stringifyError(
638+
`EVENT: receive error message id: ${messageId}, error: ${stringifyError(
639639
error,
640-
)}`,
640+
)}, current auth status is: ${this.authProcessed ? 'true' : 'false'}`,
641+
);
642+
this.subscriptionOnSessionExpiredListener.informSubscribers(
643+
true,
644+
EventMessageType.LocalMessage,
641645
);
642646
};
643647

src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import useModal from '../../../hooks/useModal';
6161
import useQBConnection from '../../providers/QuickBloxUIKitProvider/useQBConnection';
6262
import { ProxyConfig } from '../../../CommonTypes/CommonTypes';
6363
import EventMessageType from '../../../Domain/entity/EventMessageType';
64+
import { formatFileSize } from '../../../utils/formatFileSize';
6465

6566
type AIWidgetPlaceHolder = {
6667
enabled: boolean;
@@ -922,7 +923,9 @@ const QuickBloxUIKitDesktopLayout: React.FC<
922923
}
923924
} else if (fileToSend) {
924925
toast(
925-
`file size ${fileToSend?.size} must be less then ${MAXSIZE_FOR_MESSAGE} mb.`,
926+
`file size ${formatFileSize(
927+
fileToSend?.size,
928+
)} must be less then ${MAXSIZE_FOR_MESSAGE} mb.`,
926929
);
927930
setFileToSend(null);
928931
}

src/Presentation/ui-components/Toast/Toast.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.container {
2+
width: 100%;
3+
}
4+
15
.toast {
26
min-height: 24px;
37
padding: 4px 12px;
@@ -13,5 +17,6 @@
1317
line-height: 16px;
1418
letter-spacing: 0.5px;
1519
color: var(--main-background);
20+
text-align: center;
1621
}
1722
}

src/Presentation/ui-components/Toast/ToastProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default function ToastProvider({ children }: ToastProps) {
1414
return (
1515
<ToastContext.Provider value={undefined}>
1616
<ToastContainer
17+
className="container"
1718
position="top-center"
1819
autoClose={3000}
1920
bodyClassName="toast__body"

src/package_artan_react_ui.json

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/package_original.json

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)