Compare commits

..

3 Commits

Author SHA1 Message Date
SD 73229cbe19 0.3.5 2025-02-25 00:46:01 +04:00
dzfelix c89584dba0 fix chat join 2025-02-24 18:46:38 +03:00
dzfelix 83965dd675 fix chat 2025-02-24 18:17:56 +03:00
5 changed files with 6 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "bbuddy-ui", "name": "bbuddy-ui",
"version": "0.3.4", "version": "0.3.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bbuddy-ui", "name": "bbuddy-ui",
"version": "0.3.4", "version": "0.3.5",
"dependencies": { "dependencies": {
"@ant-design/cssinjs": "^1.18.1", "@ant-design/cssinjs": "^1.18.1",
"@ant-design/icons": "^5.2.6", "@ant-design/icons": "^5.2.6",

View File

@ -1,6 +1,6 @@
{ {
"name": "bbuddy-ui", "name": "bbuddy-ui",
"version": "0.3.4", "version": "0.3.5",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 4200", "dev": "next dev -p 4200",

View File

@ -46,6 +46,7 @@ export const ChatMessages = ({ locale, groupId }: CompProps) => {
setNotMe(_group.group.members[0].user) setNotMe(_group.group.members[0].user)
} }
setMessages(_messages.messages); setMessages(_messages.messages);
joinChat(groupId)
}) })
.catch((e) => { .catch((e) => {

View File

@ -46,7 +46,7 @@ export const ExpertCard: FC<ExpertDetailsProps> = ({ expert, locale, expertId })
document?.addEventListener('show_pay_form', handleShowPayForm); document?.addEventListener('show_pay_form', handleShowPayForm);
return () => { return () => {
if (closeConnection) closeConnection(); // if (closeConnection) closeConnection();
document?.removeEventListener('show_pay_form', handleShowPayForm); document?.removeEventListener('show_pay_form', handleShowPayForm);
} }
}, []); }, []);

View File

@ -27,6 +27,7 @@ class SignalConnector {
private events = {} as any; private events = {} as any;
static instance?: SignalConnector; static instance?: SignalConnector;
constructor({ jwt }: { jwt?: string}) { constructor({ jwt }: { jwt?: string}) {
console.log('here')
const options = { const options = {
accessTokenFactory: () => jwt accessTokenFactory: () => jwt
} as IHttpConnectionOptions; } as IHttpConnectionOptions;