diff --git a/src/Client/css/im.css b/src/Client/css/im.css index ccdbeb65..a9f36743 100644 --- a/src/Client/css/im.css +++ b/src/Client/css/im.css @@ -1015,11 +1015,17 @@ svg.toolbar-action { } .user-menu.in-message { - background-color: #373737; + background-color: #212120; + right:10px; + top:32px; +} + +.incoming-message .message-context-menu.outer-user-menu { + background-color: #373737 !important; } .user-menu.in-message.menu-up { - top: -82px; + top: -92px; } .modal-menu .back { diff --git a/src/Server/Im/Database.purs b/src/Server/Im/Database.purs index 5ad348f4..2d2555bb 100644 --- a/src/Server/Im/Database.purs +++ b/src/Server/Im/Database.purs @@ -281,8 +281,7 @@ insertMessage loggedUserId recipient temporaryId content = SD.withTransaction $ insertKarma ∷ ∀ r. Int → Int → Tuple Int Int → BaseEffect { pool ∷ Pool | r } Unit insertKarma loggedUserId userId (Tuple senderKarma recipientKarma) | senderKarma <= 0 && recipientKarma <= 0 = pure unit - | otherwise = do - liftEffect $ EC.log $ "karma turn: users " <> show loggedUserId <> " and " <> show userId <> " making " <> show senderKarma <> " and " <> show recipientKarma + | otherwise = SD.withTransaction $ \connection → do when (senderKarma > 0) (SD.executeWith connection $ insert # into karma_histories (_amount /\ _target) # values (senderKarma /\ loggedUserId)) when (recipientKarma > 0) (SD.executeWith connection $ insert # into karma_histories (_amount /\ _target) # values (recipientKarma /\ userId))