mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
Remove misplaced try catch block
This commit is contained in:
parent
a630a5ae79
commit
f9db9aa632
@ -148,7 +148,6 @@ class ConversationsHelper {
|
|||||||
|
|
||||||
/// Get information about a single conversation specified by its [id]
|
/// Get information about a single conversation specified by its [id]
|
||||||
Future<Conversation> _downloadSingle(int id) async {
|
Future<Conversation> _downloadSingle(int id) async {
|
||||||
try {
|
|
||||||
final response = await APIRequest(
|
final response = await APIRequest(
|
||||||
uri: "conversations/get_single",
|
uri: "conversations/get_single",
|
||||||
needLogin: true,
|
needLogin: true,
|
||||||
@ -159,10 +158,6 @@ class ConversationsHelper {
|
|||||||
await ConversationsSerializationHelper()
|
await ConversationsSerializationHelper()
|
||||||
.insertOrReplaceElement((c) => c.id == conversation.id, conversation);
|
.insertOrReplaceElement((c) => c.id == conversation.id, conversation);
|
||||||
return conversation;
|
return conversation;
|
||||||
} on Exception catch (e, s) {
|
|
||||||
print("Could not get information about a single conversation ! $e => $s");
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get information about a conversation. If [force] is set to false, a
|
/// Get information about a conversation. If [force] is set to false, a
|
||||||
|
Loading…
Reference in New Issue
Block a user