From 7e5c7db3f9e59091104ca2e2782fc2b18a5f9673 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Mon, 11 Nov 2019 22:21:25 -0300 Subject: [PATCH] Show all notifications in chat log --- src/client/actions/NotifyActions.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/client/actions/NotifyActions.js b/src/client/actions/NotifyActions.js index 43f4095..5cdf875 100644 --- a/src/client/actions/NotifyActions.js +++ b/src/client/actions/NotifyActions.js @@ -1,4 +1,5 @@ import * as constants from '../constants.js' +import * as ChatActions from './ChatActions.js' import _ from 'underscore' const TIMEOUT = 5000 @@ -18,6 +19,12 @@ const _notify = (type, args) => dispatch => { type: constants.NOTIFY, payload }) + dispatch(ChatActions.addMessage({ + userId: '[PeerCalls]', + message, + timestamp: new Date().toLocaleString(), + image: null + })) setTimeout(() => { dispatch({ type: constants.NOTIFY_DISMISS,