Add (WIP) ban/klck ability
This commit is contained in:
parent
c130d28b93
commit
3a1bcb5b8f
13 changed files with 113 additions and 30 deletions
|
|
@ -2,7 +2,6 @@ import "dart:async";
|
|||
import "package:collection/collection.dart";
|
||||
import "package:fast_immutable_collections/fast_immutable_collections.dart";
|
||||
import "package:flutter_chat_core/flutter_chat_core.dart";
|
||||
import "package:flutter_chat_core/flutter_chat_core.dart" as chat;
|
||||
import "package:flutter_riverpod/flutter_riverpod.dart";
|
||||
import "package:fluttertagger/fluttertagger.dart";
|
||||
import "package:nexus/controllers/client_controller.dart";
|
||||
|
|
@ -258,21 +257,6 @@ class RoomChatController extends AsyncNotifier<InMemoryChatController> {
|
|||
if (message != null) insertMessage(message);
|
||||
}
|
||||
|
||||
Future<chat.User> resolveUser(String id) async {
|
||||
final user = await ref
|
||||
.watch(ClientController.provider.notifier)
|
||||
.getProfile(id);
|
||||
return chat.User(
|
||||
id: id,
|
||||
name: user.displayName,
|
||||
// imageSource: user.avatarUrl == null
|
||||
// ? null
|
||||
// : (await ref.watch(
|
||||
// AvatarController.provider(user.avatarUrl!.toString()).future,
|
||||
// )).toString(),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> scrollToMessage(Message message) async {
|
||||
final controller = await future;
|
||||
Future<void> setFlashing(bool flashing) => controller.updateMessage(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue