瀏覽代碼

Fix: Clear entities table on logout (#1003)

Neeraj Gupta 2 年之前
父節點
當前提交
035dac70b0
共有 2 個文件被更改,包括 26 次插入0 次删除
  1. 1 0
      lib/db/files_db.dart
  2. 25 0
      lib/generated/intl/messages_zh.dart

+ 1 - 0
lib/db/files_db.dart

@@ -371,6 +371,7 @@ class FilesDB {
     await db.delete(filesTable);
     await db.delete("device_files");
     await db.delete("device_collections");
+    await db.delete("entities");
   }
 
   Future<void> deleteDB() async {

+ 25 - 0
lib/generated/intl/messages_zh.dart

@@ -0,0 +1,25 @@
+// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
+// This is a library that provides messages for a zh locale. All the
+// messages from the main program should be duplicated here with the same
+// function name.
+
+// Ignore issues from commonly used lints in this file.
+// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
+// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
+// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
+// ignore_for_file:unused_import, file_names, avoid_escaping_inner_quotes
+// ignore_for_file:unnecessary_string_interpolations, unnecessary_string_escapes
+
+import 'package:intl/intl.dart';
+import 'package:intl/message_lookup_by_library.dart';
+
+final messages = new MessageLookup();
+
+typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
+
+class MessageLookup extends MessageLookupByLibrary {
+  String get localeName => 'zh';
+
+  final messages = _notInlinedMessages(_notInlinedMessages);
+  static Map<String, Function> _notInlinedMessages(_) => <String, Function>{};
+}