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 constants from '../constants.js'
|
||||||
|
import * as ChatActions from './ChatActions.js'
|
||||||
import _ from 'underscore'
|
import _ from 'underscore'
|
||||||
|
|
||||||
const TIMEOUT = 5000
|
const TIMEOUT = 5000
|
||||||
@ -18,6 +19,12 @@ const _notify = (type, args) => dispatch => {
|
|||||||
type: constants.NOTIFY,
|
type: constants.NOTIFY,
|
||||||
payload
|
payload
|
||||||
})
|
})
|
||||||
|
dispatch(ChatActions.addMessage({
|
||||||
|
userId: '[PeerCalls]',
|
||||||
|
message,
|
||||||
|
timestamp: new Date().toLocaleString(),
|
||||||
|
image: null
|
||||||
|
}))
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: constants.NOTIFY_DISMISS,
|
type: constants.NOTIFY_DISMISS,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user