[Notifications] Fix missing DB and missing slash

This commit is contained in:
Marcel 2019-07-18 18:47:59 +02:00
parent d4883acf28
commit eed51913c4
No known key found for this signature in database
GPG Key ID: B5E03B5BF119B26C
2 changed files with 3 additions and 2 deletions

View File

@ -243,7 +243,7 @@ class Client {
Future<PushrulesResponse> getPushrules() async {
final dynamic resp = await connection.jsonRequest(
type: HTTPType.GET,
action: "/client/r0/pushrules",
action: "/client/r0/pushrules/",
);
if (resp is ErrorResponse) {

View File

@ -100,6 +100,7 @@ class Store {
await db.execute(RoomsScheme);
await db.execute(UserScheme);
await db.execute(EventsScheme);
await db.execute(NotificationsCacheScheme);
}
Future<String> queryPrevBatch() async {
@ -716,7 +717,7 @@ class Store {
'UNIQUE(chat_id, matrix_id))';
/// The database scheme for the NotificationsCache class.
static final String NotificationsCache = 'CREATE TABLE IF NOT EXISTS NotificationsCache(' +
static final String NotificationsCacheScheme = 'CREATE TABLE IF NOT EXISTS NotificationsCache(' +
'chat_id TEXT, ' + // The chat id
'event_id TEXT, ' + // The matrix id of the Event
'UNIQUE(event_id))';