Drop kwargs support for callCoro/callClientCoro
This commit is contained in:
@@ -35,17 +35,17 @@ Banner {
|
||||
"accept": function(button) {
|
||||
button.loading = true
|
||||
py.callClientCoro(
|
||||
chatPage.userId, "join", [chatPage.roomId], {},
|
||||
function() { button.loading = false }
|
||||
)
|
||||
chatPage.userId, "join", [chatPage.roomId], function() {
|
||||
button.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
"decline": function(button) {
|
||||
button.loading = true
|
||||
py.callClientCoro(
|
||||
chatPage.userId, "room_leave", [chatPage.roomId], {},
|
||||
function() { button.loading = false }
|
||||
)
|
||||
chatPage.userId, "room_leave", [chatPage.roomId], function() {
|
||||
button.loading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -24,9 +24,9 @@ Banner {
|
||||
"forget": function(button) {
|
||||
button.loading = true
|
||||
py.callClientCoro(
|
||||
chatPage.userId, "room_forget", [chatPage.roomId], {},
|
||||
function() { button.loading = false }
|
||||
)
|
||||
chatPage.userId, "room_forget", [chatPage.roomId], function() {
|
||||
button.loading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -50,7 +50,6 @@ HRectangle {
|
||||
chatPage.userId,
|
||||
"load_past_events",
|
||||
[chatPage.roomId],
|
||||
{},
|
||||
function(more_to_load) { canLoad = more_to_load }
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user