Skip to content

Commit

Permalink
Merge pull request #1509 from push-protocol/localsdk
Browse files Browse the repository at this point in the history
Added support for frames and video playback using uiweb alpha
  • Loading branch information
HarshRajat authored May 13, 2024
2 parents c038488 + d3d4b0a commit 50d56d6
Show file tree
Hide file tree
Showing 7 changed files with 492 additions and 207 deletions.
2 changes: 2 additions & 0 deletions dev-mode-link-local-sdk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const packageJSONWatcher = {
'animejs@^2.2.0',
'classnames@^2.2.5',
'raf@^3.4.0',
'protobufjs@^7.2.6',
'react-code-blocks@^0.1.6',
'@livepeer/react@^2.9.2',
'@livekit/components-react@^1.5.3',
'livekit-client@^1.15.13',
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"@mui/icons-material": "^5.8.4",
"@mui/lab": "^5.0.0-alpha.72",
"@mui/material": "^5.5.0",
"@pushprotocol/restapi": "1.6.12-alpha.5",
"@pushprotocol/restapi": "1.7.15",
"@pushprotocol/socket": "0.5.3",
"@pushprotocol/uiweb": "1.2.11",
"@pushprotocol/uiweb": "1.3.1",
"@reduxjs/toolkit": "^1.7.1",
"@testing-library/dom": "^9.0.1",
"@testing-library/jest-dom": "^4.2.4",
Expand Down Expand Up @@ -113,7 +113,7 @@
"react-joyride": "^2.4.0",
"react-loader-spinner": "^5.3.4",
"react-multi-select-component": "^4.2.3",
"react-player": "2.9.0",
"react-player": "^2.16.0",
"react-query": "^3.39.1",
"react-redux": "^7.2.6",
"react-router-dom": "^6.9.0",
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default function App() {
<ChatUIProvider
user={userPushSDKInstance}
theme={darkMode && darkChatTheme}
debug={true}
debug={false}
uiConfig={{
suppressToast: false,
}}
Expand Down
3 changes: 2 additions & 1 deletion src/modules/chat/ChatModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ function Chat({ chatid }) {
const [intents, setIntents] = useState<Feeds[]>([]);
const [inbox, setInbox] = useState<Feeds[]>([]);
const [hasUserBeenSearched, setHasUserBeenSearched] = useState<boolean>(false);
// TODO: Add proper types and lean the logic
const [activeTab, setCurrentTab] = useState<number>(0);
const [userShouldBeSearched, setUserShouldBeSearched] = useState<boolean>(false);
const [filteredUserData, setFilteredUserData] = useState<User[]>([]);
Expand Down Expand Up @@ -305,7 +306,7 @@ function Chat({ chatid }) {
flex="1"
maxWidth="310px"
minWidth="280px"
padding="10px 10px 10px 20px"
padding="0px"
boxSizing="border-box"
background={theme.default.bg}
chatActive={isUserChatting && userPushSDKInstance && !userPushSDKInstance?.readmode()}
Expand Down
Loading

0 comments on commit 50d56d6

Please sign in to comment.