Show all notifications in chat log
This commit is contained in:
parent
644fcbe06d
commit
7e5c7db3f9
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user