Do not emit messages if storing them in the DB failed 92/head
authorMichael Marley <michael@michaelmarley.com>
Sat, 6 Sep 2014 02:16:05 +0000 (22:16 -0400)
committerMichael Marley <michael@michaelmarley.com>
Sun, 14 Sep 2014 22:09:54 +0000 (18:09 -0400)
commita4bcc707aed42a8be43848068d82cb0ef2b43d0e
tree1aac72499d41ff05d0cb8a349052dc9c3c27613d
parent13db1eb09783ab2220c6609844ef32ad0be75945
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