Do not emit messages if storing them in the DB failed
authorMichael Marley <michael@michaelmarley.com>
Sat, 6 Sep 2014 02:16:05 +0000 (22:16 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 23 Sep 2014 21:23:03 +0000 (23:23 +0200)
commita071b431314816ce47b00918d8baddc0ec546eb1
tree61d0314dd0172cccb725816827f56d6b20410d69
parent0c279ed8e6e647fa41670c84b73bf7633235aa09
Do not emit messages if storing them in the DB failed

If a message is not stored in the database, then some of its IDs
(networkId at least) will be invalid.  If this message is sent to
clients, it will cause a nameless empty buffer to appear in the
desktop client and will cause Quasseldroid to crash (of course.)
Better behavior would be to simply not emit the message, since it
can't be displayed properly anyway.
src/core/coresession.cpp