Fix bugs in messaging
parent
31ae1425b6
commit
8d035b15d8
|
@ -32,7 +32,7 @@ object Message extends LilaController {
|
|||
implicit val req = ctx.body
|
||||
forms.post.bindFromRequest.fold(
|
||||
err ⇒ io {
|
||||
BadRequest(html.message.thread(thread, err) + "#bottom")
|
||||
BadRequest(html.message.thread(thread, err))
|
||||
},
|
||||
text ⇒ api.makePost(thread, text, me).map(post ⇒
|
||||
Redirect(routes.Message.thread(thread.id) + "#bottom")
|
||||
|
|
|
@ -51,7 +51,7 @@ final class Api(
|
|||
isByCreator = thread isCreator me)
|
||||
val newThread = thread + post
|
||||
for {
|
||||
_ ← threadRepo saveIO thread
|
||||
_ ← threadRepo saveIO newThread
|
||||
otherUser ← userRepo byId (thread otherUserId me)
|
||||
_ ← otherUser.fold(
|
||||
other ⇒ io(unreadCache invalidate other),
|
||||
|
|
|
@ -622,7 +622,6 @@ $.widget("lichess.game", {
|
|||
var self = this;
|
||||
if (reloadIfFail) {
|
||||
location.reload();
|
||||
//console.debug(error)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -9,7 +9,7 @@ $.websocket = function(url, version, settings) {
|
|||
},
|
||||
options: {
|
||||
name: "unnamed",
|
||||
debug: true,
|
||||
debug: false,
|
||||
offlineDelay: 5000,
|
||||
offlineTag: false,
|
||||
pingData: JSON.stringify({t: "p"}),
|
||||
|
|
1
todo
1
todo
|
@ -21,6 +21,7 @@ use play-navigator router case class MyRegexStr(value: String); implicit val MyR
|
|||
http://codetunes.com/2012/05/09/scala-dsl-tutorial-writing-web-framework-router
|
||||
use POST instead of GET where it makes sense
|
||||
endgame sound http://en.lichess.org/forum/lichess-feedback/checkmate-sound-feature?page=1#1
|
||||
set online when hitting a page
|
||||
|
||||
next deploy:
|
||||
mongo lichess mongo_migration_user.js
|
||||
|
|
Loading…
Reference in New Issue