LOC-8 Do not throw exception if message cannot be decrypted
author B Tasker
()
committer B Tasker
()
commit fd44f9a4b0c33ed4126ee198fb2783a10d8ac473
tree ae3498e4ef312032ec51237c63d9a746acaef5f8
parent a23124d5b52f5863f8f61647f0b4f34759c037fc
LOC-8 Do not throw exception if message cannot be decrypted

If a user connects into a room using a different encryption key to everyone else, do not let them effectively DoS the room by causing exceptions in everyone else's clients.

If we receive a message that cannot be decrypted, we simply print a warning to that effect and carry on.

Because the sending user's name is in the encrypted payload, we can't ascertain who sent it - but as soon as someone else replies, that sending user will also get an error message.
client/LocalChatClient.py