feat: Add deafen to pc, fix mobiel view, fix freeze on startup
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/member-ordering */
|
||||
import {
|
||||
CUSTOM_ELEMENTS_SCHEMA,
|
||||
Component,
|
||||
computed,
|
||||
inject,
|
||||
@@ -18,16 +17,13 @@ import {
|
||||
} from '@ng-icons/lucide';
|
||||
|
||||
import { UserSearchListComponent } from '../user-search-list/user-search-list.component';
|
||||
import { ServersRailComponent } from '../../../../features/servers/servers-rail/servers-rail.component';
|
||||
import { ViewportService } from '../../../../core/platform';
|
||||
import { selectAllUsers } from '../../../../store/users/users.selectors';
|
||||
import { selectSavedRooms } from '../../../../store/rooms/rooms.selectors';
|
||||
|
||||
/**
|
||||
* Dedicated people-discovery page. Wraps {@link UserSearchListComponent} with a search
|
||||
* field and an onboarding empty state for accounts that have not joined any servers yet.
|
||||
* On mobile the page is mounted inside a Swiper slide alongside the servers rail so the
|
||||
* primary navigation stays reachable, matching the chat-room and DM workspace layouts.
|
||||
* On mobile the global app-shell servers rail stays visible beside this page.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'app-find-people',
|
||||
@@ -37,18 +33,16 @@ import { selectSavedRooms } from '../../../../store/rooms/rooms.selectors';
|
||||
FormsModule,
|
||||
RouterLink,
|
||||
NgIcon,
|
||||
UserSearchListComponent,
|
||||
ServersRailComponent
|
||||
UserSearchListComponent
|
||||
],
|
||||
viewProviders: [provideIcons({ lucideArrowLeft, lucideSearch, lucideUsers })],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||
templateUrl: './find-people.component.html'
|
||||
templateUrl: './find-people.component.html',
|
||||
host: {
|
||||
class: 'block h-full min-h-0 min-w-0 w-full overflow-hidden'
|
||||
}
|
||||
})
|
||||
export class FindPeopleComponent {
|
||||
private store = inject(Store);
|
||||
private readonly viewport = inject(ViewportService);
|
||||
|
||||
readonly isMobile = this.viewport.isMobile;
|
||||
searchQuery = signal('');
|
||||
private users = this.store.selectSignal(selectAllUsers);
|
||||
private savedRooms = this.store.selectSignal(selectSavedRooms);
|
||||
|
||||
Reference in New Issue
Block a user