diff --git a/app/public/background.js b/app/public/background.js index 98fa4e9..1484980 100644 --- a/app/public/background.js +++ b/app/public/background.js @@ -125,7 +125,8 @@ chrome.runtime.onConnect.addListener((port) => { const isAdmin = snap.docs .filter((user) => user.id === firebase.auth().currentUser.uid)[0] .data().admin; - port.postMessage({ admin: isAdmin }); + const users = snap.docs.map((userSnap) => userSnap.data().name); + port.postMessage({ admin: isAdmin, users }); } }, (err) => { diff --git a/app/src/App.js b/app/src/App.js index 015dbed..0ff6749 100644 --- a/app/src/App.js +++ b/app/src/App.js @@ -26,7 +26,8 @@ import 'firebase/firestore'; import Inactive from './Inactive'; import { getUserUid, getPlayerSource, PLAYER_SOURCE } from './Api'; -const APP_VERSION = '1.4.0'; +const APP_VERSION = '1.4.3'; +const APP_VERSION_STRING = APP_VERSION.replace(/\./g, ''); const darkTheme = createMuiTheme({ palette: { @@ -55,10 +56,6 @@ const Routes = (props) => ( ); -const wrongVersionStatus = { - message: `Looks like Watch Party needs to update.\nGo to chrome://extensions to manually update.\nExpected version v${APP_VERSION}`, -}; - const App = () => { const closedNotification = { open: false, message: '' }; @@ -129,13 +126,19 @@ const App = () => {