Skip to content

Commit

Permalink
don't check if conversation recording exists (coz not needed) (#1589)
Browse files Browse the repository at this point in the history
Closes #1585
  • Loading branch information
beastoin authored Dec 27, 2024
2 parents 4e65dab + b6680f0 commit 478cba3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/lib/backend/http/api/conversations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Future<bool> hasConversationRecording(String conversationId) async {
body: '',
);
if (response == null) return false;
debugPrint('getConversationPhotos: ${response.body}');
debugPrint('hasConversationRecording: ${response.body}');
if (response.statusCode == 200) {
return jsonDecode(response.body)['has_recording'] ?? false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ class ConversationDetailProvider extends ChangeNotifier with MessageNotifierMixi
await populatePhotosData();
});
} else if (conversation.source == ConversationSource.friend) {
await hasConversationRecording(conversation.id).then((value) {
hasAudioRecording = value;
});
// await hasConversationRecording(conversation.id).then((value) {
// hasAudioRecording = value;
// });
}
appsList = appProvider!.apps;
if (!conversation.discarded) {
Expand Down

0 comments on commit 478cba3

Please sign in to comment.