show better error message when sending message to a room where we are no more connected. fixes #3870
This commit is contained in:
parent
ef97e91a1d
commit
0158db6001
|
@ -1675,7 +1675,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
msgtxt = decmsg
|
msgtxt = decmsg
|
||||||
encrypted = True
|
encrypted = True
|
||||||
if mtype == 'error':
|
if mtype == 'error':
|
||||||
error_msg = msg.getError()
|
error_msg = msg.getErrorMsg()
|
||||||
if not error_msg:
|
if not error_msg:
|
||||||
error_msg = msgtxt
|
error_msg = msgtxt
|
||||||
msgtxt = None
|
msgtxt = None
|
||||||
|
|
Loading…
Reference in New Issue