Skip to content

Commit

Permalink
makes chat inaccessible to the user (#2090)
Browse files Browse the repository at this point in the history
* makes chat inaccessible for the user

* Adding TODO

* closing hive boxes
  • Loading branch information
Dante291 authored Nov 14, 2023
1 parent 57e7dca commit b548497
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
25 changes: 14 additions & 11 deletions lib/view_model/main_screen_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:talawa/services/size_config.dart';
import 'package:talawa/utils/app_localization.dart';
import 'package:talawa/view_model/base_view_model.dart';
import 'package:talawa/views/after_auth_screens/add_post_page.dart';
import 'package:talawa/views/after_auth_screens/chat/chat_list_screen.dart';
// import 'package:talawa/views/after_auth_screens/chat/chat_list_screen.dart';
import 'package:talawa/views/after_auth_screens/events/explore_events.dart';
import 'package:talawa/views/after_auth_screens/feed/organization_feed.dart';
import 'package:talawa/views/after_auth_screens/profile/profile_page.dart';
Expand Down Expand Up @@ -239,13 +239,16 @@ class MainScreenViewModel extends BaseModel {
),
label: AppLocalizations.of(context)!.strictTranslate('Add'),
),
BottomNavigationBarItem(
icon: Icon(
Icons.chat_outlined,
key: keyBNChat,
),
label: AppLocalizations.of(context)!.strictTranslate('Chat'),
),

/// Makes chat inaccessible for the user
//TODO: add chat functionality
// BottomNavigationBarItem(
// icon: Icon(
// Icons.chat_outlined,
// key: keyBNChat,
// ),
// label: AppLocalizations.of(context)!.strictTranslate('Chat'),
// ),
BottomNavigationBarItem(
icon: Icon(
Icons.account_circle,
Expand All @@ -268,9 +271,9 @@ class MainScreenViewModel extends BaseModel {
key: const Key('AddPost'),
drawerKey: MainScreenViewModel.scaffoldKey,
),
const ChatPage(
key: Key('Chats'),
),
// const ChatPage(
// key: Key('Chats'),
// ),
ProfilePage(
key: keySPEditProfile,
homeModel: this,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ Future<void> main() async {
await Hive.openBox<User>('currentUser');
await Hive.openBox<OrgInfo>('currentOrg');
await Hive.openBox('url');
tearDown(() async {
await Hive.close();
});

group('Setting Page Screen Widget Test in dark mode', () {
testWidgets("Testing if Settings Screen shows up", (tester) async {
Expand Down

0 comments on commit b548497

Please sign in to comment.