maybe this is a little better
This commit is contained in:
parent
a6a30a7705
commit
866d85945c
1 changed files with 8 additions and 14 deletions
|
@ -73,9 +73,8 @@ transferForm = areq currencyField (bfs MsgValue) (Just 0)
|
||||||
|
|
||||||
notify :: User -> User -> Int -> App -> IO ()
|
notify :: User -> User -> Int -> App -> IO ()
|
||||||
notify sender rcpt amount master = do
|
notify sender rcpt amount master = do
|
||||||
case userEmail sender of
|
when (isJust $ userEmail sender) $
|
||||||
Just email ->
|
liftIO $ sendMail (fromJust $ userEmail sender) "Guthabentransfer beim Matematen"
|
||||||
liftIO $ sendMail email "Guthabentransfer beim Matematen"
|
|
||||||
[stext|
|
[stext|
|
||||||
Hallo #{userIdent sender}
|
Hallo #{userIdent sender}
|
||||||
|
|
||||||
|
@ -85,11 +84,8 @@ Viele Grüße,
|
||||||
|
|
||||||
Dein Matemat
|
Dein Matemat
|
||||||
|]
|
|]
|
||||||
Nothing ->
|
when (isJust $ userEmail rcpt) $
|
||||||
return ()
|
liftIO $ sendMail (fromJust $ userEmail rcpt) "Guthabentransfer eingetroffen"
|
||||||
case userEmail rcpt of
|
|
||||||
Just email ->
|
|
||||||
liftIO $ sendMail email "Guthabentransfer eingetroffen"
|
|
||||||
[stext|
|
[stext|
|
||||||
Hallo #{userIdent rcpt}
|
Hallo #{userIdent rcpt}
|
||||||
|
|
||||||
|
@ -99,5 +95,3 @@ Viele Grüße,
|
||||||
|
|
||||||
Dein Matemat
|
Dein Matemat
|
||||||
|]
|
|]
|
||||||
Nothing ->
|
|
||||||
return ()
|
|
||||||
|
|
Loading…
Reference in a new issue