fix: change type parameter from array to single value for API compatibility

SDK API only accepts single MessageType value, not array. Updated to use client-side filtering for Tab-based message type filtering (all/notice/other) instead of server-side filtering.

Changes:
- hooks/use-messages.ts: Changed type parameter from array to single value
- app/(tabs)/message.tsx: Replaced getMessageTypeByTab with filterMessagesByTab for client-side filtering
- Removed useEffect dependency on activeTab to prevent unnecessary refetches

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
imeepos
2026-01-21 15:15:47 +08:00
parent 4868ff8660
commit a344410374
7 changed files with 378 additions and 114 deletions

View File

@@ -19,8 +19,8 @@
"test:coverage": "./node_modules/.bin/jest --coverage"
},
"dependencies": {
"@repo/core": "1.0.2",
"@repo/sdk": "1.0.7",
"@repo/core": "1.0.3",
"@repo/sdk": "1.0.9",
"@better-auth/expo": "1.3.34",
"@expo/vector-icons": "^15.0.3",
"@gorhom/bottom-sheet": "^5.2.8",