Compare commits
2 Commits
6f1493808f
...
c8cd37e451
Author | SHA1 | Date | |
---|---|---|---|
c8cd37e451 | |||
9f8f3a5407 |
2
.gitlint
2
.gitlint
@ -7,7 +7,7 @@ line-length=72
|
|||||||
[title-trailing-punctuation]
|
[title-trailing-punctuation]
|
||||||
[title-hard-tab]
|
[title-hard-tab]
|
||||||
[title-match-regex]
|
[title-match-regex]
|
||||||
regex=^(feat|fix|chore|refactor|docs|release|test)\((xmpp|service|ui|shared|meta|tests|i18n)+(,(xmpp|service|ui|shared|meta|tests|i18n))*\): .*$
|
regex=^((feat|fix|chore|refactor|docs|release|test)\((xmpp|service|ui|shared|meta|tests|i18n)+(,(xmpp|service|ui|shared|meta|tests|i18n))*\)|release): .*$
|
||||||
|
|
||||||
|
|
||||||
[body-trailing-whitespace]
|
[body-trailing-whitespace]
|
||||||
|
@ -59,7 +59,7 @@ Future<void> createDatabase(Database db, int version) async {
|
|||||||
stickerHashKey TEXT,
|
stickerHashKey TEXT,
|
||||||
pseudoMessageType INTEGER,
|
pseudoMessageType INTEGER,
|
||||||
pseudoMessageData TEXT,
|
pseudoMessageData TEXT,
|
||||||
CONSTRAINT fk_quote FOREIGN KEY (quote_id) REFERENCES $messagesTable (id),
|
CONSTRAINT fk_quote FOREIGN KEY (quote_id) REFERENCES $messagesTable (id)
|
||||||
)''',
|
)''',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -252,6 +252,7 @@ Future<void> entrypoint() async {
|
|||||||
sendEvent(ServiceReadyEvent());
|
sendEvent(ServiceReadyEvent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@pragma('vm:entry-point')
|
||||||
Future<void> receiveUIEvent(Map<String, dynamic>? data) async {
|
Future<void> receiveUIEvent(Map<String, dynamic>? data) async {
|
||||||
await GetIt.I.get<SynchronizedQueue<Map<String, dynamic>?>>().add(data);
|
await GetIt.I.get<SynchronizedQueue<Map<String, dynamic>?>>().add(data);
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,8 @@ abstract class PreferencesEvent {}
|
|||||||
/// If [notify] is true, then the background service will be
|
/// If [notify] is true, then the background service will be
|
||||||
/// notified of this change.
|
/// notified of this change.
|
||||||
class PreferencesChangedEvent extends PreferencesEvent {
|
class PreferencesChangedEvent extends PreferencesEvent {
|
||||||
|
|
||||||
PreferencesChangedEvent(this.preferences, {
|
PreferencesChangedEvent(this.preferences, {
|
||||||
this.notify = true,
|
this.notify = true,
|
||||||
});
|
});
|
||||||
final PreferencesState preferences;
|
final PreferencesState preferences;
|
||||||
final bool notify;
|
final bool notify;
|
||||||
@ -19,7 +18,6 @@ class SignedOutEvent extends PreferencesEvent {}
|
|||||||
|
|
||||||
/// Triggered when a background image has been set
|
/// Triggered when a background image has been set
|
||||||
class BackgroundImageSetEvent extends PreferencesEvent {
|
class BackgroundImageSetEvent extends PreferencesEvent {
|
||||||
|
|
||||||
BackgroundImageSetEvent(this.backgroundPath);
|
BackgroundImageSetEvent(this.backgroundPath);
|
||||||
final String backgroundPath;
|
final String backgroundPath;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,10 @@ import 'package:share_handler/share_handler.dart';
|
|||||||
/// Handler for when we received a [PreStartDoneEvent].
|
/// Handler for when we received a [PreStartDoneEvent].
|
||||||
Future<void> preStartDone(PreStartDoneEvent result, { dynamic extra }) async {
|
Future<void> preStartDone(PreStartDoneEvent result, { dynamic extra }) async {
|
||||||
GetIt.I.get<PreferencesBloc>().add(
|
GetIt.I.get<PreferencesBloc>().add(
|
||||||
PreferencesChangedEvent(result.preferences),
|
PreferencesChangedEvent(
|
||||||
|
result.preferences,
|
||||||
|
notify: false,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
@ -3,7 +3,7 @@ description: An experimental XMPP client
|
|||||||
|
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.3.0+5
|
version: 0.4.0+8
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.17.0 <3.0.0"
|
sdk: ">=2.17.0 <3.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user