Skip to content

Commit

Permalink
fix navigating to threads by notifications, fix empty chat send message
Browse files Browse the repository at this point in the history
  • Loading branch information
EvGen94 committed Jan 3, 2023
1 parent 657319b commit 6f44cca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/blocs/messages_cubit/messages_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,11 @@ abstract class BaseMessagesCubit extends Cubit<MessagesState> {
_sendInProgress += 1;

final int now = // if the time on the device lags behind
state.messages.first.updatedAt > DateTime.now().millisecondsSinceEpoch
? state.messages.first.updatedAt + 1
state.messages.isNotEmpty
? state.messages.first.updatedAt >
DateTime.now().millisecondsSinceEpoch
? state.messages.first.updatedAt + 1
: DateTime.now().millisecondsSinceEpoch
: DateTime.now().millisecondsSinceEpoch;

final sendStream = _repository.send(
Expand Down
1 change: 1 addition & 0 deletions lib/services/navigator_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class NavigatorService {
);

pinnedMessageCubit.getPinnedMessages(channelId, channel.isDirect);
channelsCubit.selectChannel(channelId: channelId);

final path = channel.isDirect
? RoutePaths.directMessageThread.path
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.2.7
version: 1.2.8

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

0 comments on commit 6f44cca

Please sign in to comment.