kopia lustrzana https://gitlab.com/mysocialportal/relatica
Fix contacts updating function call to following as well as follows contact (typo)
rodzic
e53b5848ed
commit
5bc5fddbe8
|
@ -345,7 +345,7 @@ class AllContactsUpdater extends _$AllContactsUpdater {
|
|||
var moreResults = true;
|
||||
var maxId = -1;
|
||||
const limit = 50;
|
||||
var currentPage = PagingData(limit: limit);
|
||||
var currentPage = const PagingData(limit: limit);
|
||||
final originalContacts =
|
||||
Set.from(ref.read(myContactsProvider(profile)).valueOrNull ?? []);
|
||||
while (moreResults) {
|
||||
|
@ -380,10 +380,10 @@ class AllContactsUpdater extends _$AllContactsUpdater {
|
|||
}
|
||||
|
||||
moreResults = true;
|
||||
currentPage = PagingData(limit: limit);
|
||||
currentPage = const PagingData(limit: limit);
|
||||
while (moreResults) {
|
||||
await ref
|
||||
.read(getMyFollowersProvider(profile, currentPage).future)
|
||||
.read(myFollowingClientProvider(profile, currentPage).future)
|
||||
.match(onSuccess: (following) {
|
||||
for (final f in following.data) {
|
||||
originalContacts.remove(f);
|
||||
|
@ -402,7 +402,7 @@ class AllContactsUpdater extends _$AllContactsUpdater {
|
|||
moreResults = following.next != null;
|
||||
}, onError: (error) {
|
||||
_acuLogger.severe(
|
||||
'Error getting followers data: $error',
|
||||
'Error getting your following data: $error',
|
||||
Trace.current(),
|
||||
);
|
||||
});
|
||||
|
|
|
@ -1766,7 +1766,7 @@ class _UpdateStatusInternalProviderElement
|
|||
}
|
||||
|
||||
String _$allContactsUpdaterHash() =>
|
||||
r'84f97838de84166a1ed907d75eedaa1decf56daf';
|
||||
r'40fac002c2cb5d493d034618182a9e1c64b58633';
|
||||
|
||||
abstract class _$AllContactsUpdater extends BuildlessNotifier<bool> {
|
||||
late final Profile profile;
|
||||
|
|
Ładowanie…
Reference in New Issue