mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-21 05:38:42 -04:00
fix lints
This commit is contained in:
parent
aeaf34e55d
commit
d1559c949d
4 changed files with 6 additions and 6 deletions
|
@ -85,7 +85,7 @@ class ChatComponentCubit extends Cubit<ChatComponentState> {
|
|||
_onChangedContacts(_contactListCubit.state);
|
||||
}
|
||||
|
||||
Future<void> _initAsync(Completer<void> _cancel) async {
|
||||
Future<void> _initAsync(Completer<void> cancel) async {
|
||||
// Subscribe to remote user info
|
||||
await _updateConversationSubscriptions();
|
||||
}
|
||||
|
|
|
@ -294,5 +294,5 @@ class AuthorInputQueue {
|
|||
InputWindow? _currentWindow;
|
||||
|
||||
/// Desired maximum window length
|
||||
static const int _maxWindowLength = 256;
|
||||
static const _maxWindowLength = 256;
|
||||
}
|
||||
|
|
|
@ -26,11 +26,11 @@ class AuthorInputSource {
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Future<int> getTailPosition() async =>
|
||||
Future<int> getTailPosition() =>
|
||||
_dhtLog.operate((reader) async => reader.length);
|
||||
|
||||
Future<AsyncValue<InputWindow?>> getWindow(
|
||||
int startPosition, int windowLength) async =>
|
||||
int startPosition, int windowLength) =>
|
||||
_dhtLog.operate((reader) async {
|
||||
// Don't allow negative length
|
||||
if (windowLength <= 0) {
|
||||
|
|
|
@ -19,7 +19,7 @@ class MessageIntegrity {
|
|||
////////////////////////////////////////////////////////////////////////////
|
||||
// Public interface
|
||||
|
||||
Future<Uint8List> generateMessageId(proto.Message? previous) async {
|
||||
Future<Uint8List> generateMessageId(proto.Message? previous) {
|
||||
if (previous == null) {
|
||||
// If there's no last sent message,
|
||||
// we start at a hash of the identity public key
|
||||
|
@ -47,7 +47,7 @@ class MessageIntegrity {
|
|||
message.signature = signature.toProto();
|
||||
}
|
||||
|
||||
Future<bool> verifyMessage(proto.Message message) async {
|
||||
Future<bool> verifyMessage(proto.Message message) {
|
||||
// Ensure the message is signed
|
||||
assert(message.hasSignature(), 'should not verify unsigned message');
|
||||
final signature = message.signature.toVeilid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue