Skip to content

Commit

Permalink
fix: fixed group creation (#1365)
Browse files Browse the repository at this point in the history
* fix: fixed group creation

* fix: fixed the example file

* fix: fixed build

* fix: reverted restapi change
  • Loading branch information
mishramonalisha76 authored Jun 24, 2024
1 parent b0c77c2 commit 0afda4d
Show file tree
Hide file tree
Showing 6 changed files with 23,291 additions and 33,903 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import styled from 'styled-components';

import { ChatView, MODAL_BACKGROUND_TYPE } from '@pushprotocol/uiweb';
import {
ChatView,
CreateGroupModal,
MODAL_BACKGROUND_TYPE,
} from '@pushprotocol/uiweb';
import { Section } from '../components/StyledComponents';
import Img from '../../assets/epnsLogo.png';
import { CHAT_ID } from '../constants';
Expand All @@ -17,7 +21,12 @@ const ChatViewComponentTest = () => {

<ChatViewComponentCard>
{/* uncomment the below code to test create group modal */}
{/* <CreateGroupModal onClose={()=>{console.log('in close')}} modalBackground={MODAL_BACKGROUND_TYPE.OVERLAY} modalPositionType={MODAL_POSITION_TYPE.RELATIVE}/> */}
<CreateGroupModal
onClose={() => {
console.log('in close');
}}
modalBackground={MODAL_BACKGROUND_TYPE.OVERLAY}
/>
<ChatView
onVerificationFail={() => console.log('Verification Failed')}
chatId={CHAT_ID}
Expand Down
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/pushapi/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class Chat {
reference?: string | null;
}
) {
let reference: string;
let reference: string | null = null;

const { threadHash, intent } = await PUSH_CHAT.conversationHash({
conversationId: target,
Expand Down
Loading

0 comments on commit 0afda4d

Please sign in to comment.