Add blahs in actions
This commit is contained in:
parent
5a9875ea01
commit
81145968a1
9 changed files with 237 additions and 35 deletions
|
|
@ -96,7 +96,7 @@
|
|||
}
|
||||
sidebarPfp.src = await getAvatarUrl(username);
|
||||
|
||||
showAction("Authenticating...", "startauth");
|
||||
showAction("action.auth", "startauth");
|
||||
let res = await Auth(username, password);
|
||||
clearAction("startauth");
|
||||
if (res.startsWith("success:")) {
|
||||
|
|
@ -120,9 +120,9 @@
|
|||
try {
|
||||
|
||||
|
||||
showAction("Refreshing dms...", "dmrefresh");
|
||||
let res = await fetchEncrypted("user/dm/list", "");
|
||||
console.log(res);
|
||||
showAction("action.dm.fetch", "dmrefresh");
|
||||
let res = await fetchEncrypted("user/dm/list");
|
||||
|
||||
clearAction("dmrefresh");
|
||||
}
|
||||
catch (e) {
|
||||
|
|
@ -133,9 +133,9 @@
|
|||
|
||||
async function addDm() {
|
||||
try {
|
||||
showAction("Adding...", "dmadd");
|
||||
showAction("action.dm.adding", "dmadd");
|
||||
let res = await fetchEncrypted("user/dm/invite", document.getElementById("addchat-username").value);
|
||||
console.log(res);
|
||||
|
||||
clearAction("dmadd");
|
||||
showBlahNotification(res);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue