Merge pull request #89 from Fab1en/features/fabien/display-permission-denied
[fix] Display permission denied error messages
This commit is contained in:
commit
e008ef171f
|
@ -408,6 +408,14 @@ class GlobalBindings {
|
|||
})
|
||||
})
|
||||
|
||||
// Log permission denied error messages
|
||||
client.on('denied', (type) => {
|
||||
ui.log.push({
|
||||
type: 'generic',
|
||||
value: 'Permission denied : '+ type
|
||||
})
|
||||
})
|
||||
|
||||
// Set own user and root channel
|
||||
this.thisUser(client.self.__ui)
|
||||
this.root(client.root.__ui)
|
||||
|
|
|
@ -184,6 +184,7 @@ import 'subworkers'
|
|||
id = { client: id }
|
||||
|
||||
registerEventProxy(id, client, 'error')
|
||||
registerEventProxy(id, client, 'denied', it => [it])
|
||||
registerEventProxy(id, client, 'newChannel', (it) => [setupChannel(id, it)])
|
||||
registerEventProxy(id, client, 'newUser', (it) => [setupUser(id, it)])
|
||||
registerEventProxy(id, client, 'message', (sender, message, users, channels, trees) => {
|
||||
|
|
Loading…
Reference in a new issue