Add Debug logs
This commit is contained in:
parent
432cf5fc98
commit
ea74096c35
|
@ -163,6 +163,8 @@ class Store {
|
||||||
"INSERT OR IGNORE INTO Rooms " +
|
"INSERT OR IGNORE INTO Rooms " +
|
||||||
"VALUES(?, ?, '', 0, 0, '', '', '', 0, '', '', '', '', '', '', '', '', 0, 50, 50, 0, 50, 50, 0, 50, 100, 50, 50, 50, 100) ",
|
"VALUES(?, ?, '', 0, 0, '', '', '', 0, '', '', '', '', '', '', '', '', 0, 50, 50, 0, 50, 50, 0, 50, 100, 50, 50, 50, 100) ",
|
||||||
[roomUpdate.id, roomUpdate.membership]);
|
[roomUpdate.id, roomUpdate.membership]);
|
||||||
|
if (roomUpdate.membership == "leave")
|
||||||
|
print("[DEBUG] Room with Membership 'leave' added to Database!");
|
||||||
|
|
||||||
// Update the notification counts and the limited timeline boolean
|
// Update the notification counts and the limited timeline boolean
|
||||||
txn.rawUpdate(
|
txn.rawUpdate(
|
||||||
|
@ -496,6 +498,7 @@ class Store {
|
||||||
(onlyGroups ? " AND rooms.direct_chat_matrix_id= '' " : "") +
|
(onlyGroups ? " AND rooms.direct_chat_matrix_id= '' " : "") +
|
||||||
" GROUP BY rooms.id " +
|
" GROUP BY rooms.id " +
|
||||||
" ORDER BY origin_server_ts DESC ");
|
" ORDER BY origin_server_ts DESC ");
|
||||||
|
print("[DEBUG] Found ${res.length} rooms");
|
||||||
List<Room> roomList = [];
|
List<Room> roomList = [];
|
||||||
for (num i = 0; i < res.length; i++) {
|
for (num i = 0; i < res.length; i++) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue