Fix roster sorting

Authored by lnj on Jul 10 2019, 9:39 PM.

Description

Fix roster sorting

By a mistake the items were not updated correctly. The old
'lastExchanged' datetime was set again instead of the new.

This also removes the ORDER BY clause from the SELECT query in the
RosterDb. Sorting is done completely in the RosterModel now.

There was also a remaining issue with the id being not optional in the
messages table: When updating a message an empty id could still be
inserted. This caused a crash.

Fixes #298.

Details

Committed
lnjJul 21 2019, 5:09 PM
Parents
R1041:78b26bbdd972: ChatPage: Clear messageToCorrect on sending
Branches
Unknown
Tags
Unknown