🐛 Bug fixes on notification push token register
This commit is contained in:
parent
e70041fefa
commit
63499df99f
@ -25,6 +25,7 @@ class NotificationProvider extends ChangeNotifier {
|
||||
if (!_ua.isAuthorized) return;
|
||||
log("Registering push notifications...");
|
||||
await registerPushNotifications();
|
||||
log("Registered push notification subscriber successfully!");
|
||||
});
|
||||
}
|
||||
|
||||
@ -54,7 +55,7 @@ class NotificationProvider extends ChangeNotifier {
|
||||
log('Device Push Token is $token');
|
||||
|
||||
await _sn.client.post(
|
||||
'/cgi/id/notifications/subscribe',
|
||||
'/cgi/id/notifications/subscription',
|
||||
data: {
|
||||
'provider': provider,
|
||||
'device_token': token,
|
||||
|
@ -275,6 +275,8 @@ class ChatMessageInputState extends State<ChatMessageInput> {
|
||||
]),
|
||||
border: InputBorder.none,
|
||||
),
|
||||
onTapOutside: (_) =>
|
||||
FocusManager.instance.primaryFocus?.unfocus(),
|
||||
onSubmitted: (_) {
|
||||
if (_isBusy) return;
|
||||
_sendMessage();
|
||||
|
Loading…
Reference in New Issue
Block a user