diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-19 10:10:18 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-19 10:55:42 +0900 |
commit | 1b11a6ee708291db37b0c7879eb103d81d70a6b7 (patch) | |
tree | 8a8e8cb7191b89177e2a6986de0ea544d56b8e8f /events/roommemberevent.cpp | |
parent | be258954da33ea3f96fa947569bf617caae68452 (diff) | |
download | libquotient-1b11a6ee708291db37b0c7879eb103d81d70a6b7.tar.gz libquotient-1b11a6ee708291db37b0c7879eb103d81d70a6b7.zip |
Event::originalJsonObject(), RoomEvent validations commented out
* Event::originalJsonObject() exposes the original JSON for the event without converting it to QByteArray. This is useful to quickly dump an event into a bigger JSON without reconstructing a JSON object.
* Validations in RoomEvent::RoomEvent() do more harm than good. The rest of the library tolerates absence of those attributes pretty well (it wouldn't be able to do much with that anyway); at the same time, dumping JSON to logs turns out to be pretty heavy, and throwing many invalid events at a client is a good way to hit its performance.
Diffstat (limited to 'events/roommemberevent.cpp')
0 files changed, 0 insertions, 0 deletions