mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
Fix BottomSheet ancestor lookup
This commit is contained in:
@@ -1723,6 +1723,16 @@ class AppProvider with ChangeNotifier {
|
||||
connectionProvider.resolveContactForDmCallback = (contactPublicKey) {
|
||||
return contactsProvider.findContactByKey(contactPublicKey);
|
||||
};
|
||||
// Reset path before the last retry attempt to force flood mode
|
||||
messagesProvider.resetPathBeforeLastRetryCallback = (contact) async {
|
||||
if (connectionProvider.deviceInfo.isConnected) {
|
||||
debugPrint(
|
||||
'🔄 [AppProvider] Resetting path for ${contact.advName} before last retry (flood fallback)',
|
||||
);
|
||||
await connectionProvider.resetPath(contact.publicKey);
|
||||
}
|
||||
};
|
||||
|
||||
messagesProvider.onFinalRouterFallbackCallback =
|
||||
({required messageId, required contact, required message}) async {
|
||||
return _sendWithFinalNearestRouterFallback(
|
||||
|
||||
Reference in New Issue
Block a user