mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-24 20:35:50 +08:00
refa: opus (#762)
* feat: opus * fix * fix * fix * fix * . * fix * remove * wbi sign * fix * opus content null check Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
3722ff1f33
commit
bd3c76ef43
@@ -72,13 +72,13 @@ class MemberDynamicsController
|
||||
var res = await DynamicsHttp.setTop(dynamicId: dynamicId);
|
||||
if (res['status']) {
|
||||
List<DynamicItemModel> list = (loadingState.value as Success).response;
|
||||
list[0].modules?.moduleTag = null;
|
||||
list[0].modules.moduleTag = null;
|
||||
if (isTop) {
|
||||
loadingState.refresh();
|
||||
SmartDialog.showToast('取消置顶成功');
|
||||
} else {
|
||||
final item = list.firstWhere((item) => item.idStr == dynamicId);
|
||||
item.modules?.moduleTag = ModuleTag(text: '置顶');
|
||||
item.modules.moduleTag = ModuleTag(text: '置顶');
|
||||
list.remove(item);
|
||||
list.insert(0, item);
|
||||
loadingState.refresh();
|
||||
|
||||
Reference in New Issue
Block a user