Skip to content

Commit

Permalink
changed: notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanBruh committed Jun 30, 2021
1 parent 8192bbb commit 08e0683
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
!/analysis_options.yaml
!/pubspec.yaml
!/.gitignore
!/android/app/src/main/res/drawable/notification_icon.png
4 changes: 2 additions & 2 deletions lib/Components/Modal/UpdateModal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class UpdateModal extends StatelessWidget {

static Future<bool> hasUpdate() async {
if (kPlayStoreRelease) return false;
var releases = await GithubReleaseProvider('stephanbruh/chatsen').getReleases();
var releases = await GithubReleaseProvider('stephanbruh/donk-chatsen').getReleases();
releases.sort((a1, a2) => a1.version!.compareTo(a2.version));
var packageInfo = await PackageInfo.fromPlatform();
var currentReleaseVersion = Version.parse('${packageInfo.version}+${packageInfo.buildNumber}');
Expand All @@ -71,7 +71,7 @@ class UpdateModal extends StatelessWidget {
static void searchForUpdate(BuildContext context) async {
if (kPlayStoreRelease) return;

var releases = await GithubReleaseProvider('stephanbruh/chatsen').getReleases();
var releases = await GithubReleaseProvider('stephanbruh/donk-chatsen').getReleases();
releases.sort((a1, a2) => a1.version!.compareTo(a2.version));

var packageInfo = await PackageInfo.fromPlatform();
Expand Down
2 changes: 1 addition & 1 deletion lib/Components/Notification.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class _NotificationWrapperState extends State<NotificationWrapper> {
flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin()
..initialize(
InitializationSettings(
android: AndroidInitializationSettings('@mipmap/ic_launcher'),
android: AndroidInitializationSettings('notification_icon'),
iOS: IOSInitializationSettings(),
),
onSelectNotification: onSelectNotification,
Expand Down
2 changes: 1 addition & 1 deletion lib/Pages/Home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class _HomePageState extends State<HomePage> implements twitch.Listener {
if ((BlocProvider.of<Settings>(context).state as SettingsLoaded).notificationOnMention && message.mention) {
NotificationWrapper.of(context)!.sendNotification(
payload: message.body,
title: message.user!.login,
title: '[${channel!.name}] ${message.user!.login}',
subtitle: message.body,
);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: chatsen
description: A new Flutter project.
publish_to: "none" # Remove this line if you wish to publish to pub.dev using `pub publish`
version: 1.0.42+37
version: 1.0.44+39

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit 08e0683

Please sign in to comment.