Attempt to fix image "double sending" issue.
This commit is contained in:
parent
cf05f9dc4a
commit
28c829c2c8
|
@ -114,7 +114,7 @@ updateFileUploadComplete : Model -> RoomId -> String -> (Result Http.Error Strin
|
||||||
updateFileUploadComplete m rid mime ur =
|
updateFileUploadComplete m rid mime ur =
|
||||||
let
|
let
|
||||||
command = case ur of
|
command = case ur of
|
||||||
Ok u -> sendFileMessage m.apiUrl (Maybe.withDefault "" m.token) m.transactionId rid mime u
|
Ok u -> sendFileMessage m.apiUrl (Maybe.withDefault "" m.token) (m.transactionId + 1) rid mime u
|
||||||
_ -> Cmd.none
|
_ -> Cmd.none
|
||||||
newErrors = case ur of
|
newErrors = case ur of
|
||||||
Err e -> [ "Error uploading file. Please check your internet connection and try again." ]
|
Err e -> [ "Error uploading file. Please check your internet connection and try again." ]
|
||||||
|
@ -126,7 +126,7 @@ updateImageUploadComplete : Model -> RoomId -> String -> (Result Http.Error Stri
|
||||||
updateImageUploadComplete m rid mime ur =
|
updateImageUploadComplete m rid mime ur =
|
||||||
let
|
let
|
||||||
command = case ur of
|
command = case ur of
|
||||||
Ok u -> sendImageMessage m.apiUrl (Maybe.withDefault "" m.token) m.transactionId rid mime u
|
Ok u -> sendImageMessage m.apiUrl (Maybe.withDefault "" m.token) (m.transactionId + 1) rid mime u
|
||||||
_ -> Cmd.none
|
_ -> Cmd.none
|
||||||
newErrors = case ur of
|
newErrors = case ur of
|
||||||
Err e -> [ "Error uploading image. Please check your internet connection and try again." ]
|
Err e -> [ "Error uploading image. Please check your internet connection and try again." ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user