(threadId: string)
| 1859 | noti.textContent = ""; |
| 1860 | noti.classList.remove("pinged"); |
| 1861 | } |
| 1862 | if (read) { |
| 1863 | noti.classList.remove("notiunread"); |
| 1864 | } else { |
| 1865 | noti.classList.add("notiunread"); |
| 1866 | } |
| 1867 | } |
| 1868 | async goToThread(threadId: string) { |
| 1869 | if (!this.localuser.channels.has(threadId)) { |
| 1870 | const channelJson = await ( |
| 1871 | await fetch(this.info.api + "/channels/" + threadId, { |
| 1872 | headers: this.headers, |
| 1873 | }) |
| 1874 | ).json(); |
| 1875 | if (channelJson.code == 200) { |
| 1876 | const channel = new Channel(channelJson as channeljson, this); |
| 1877 | this.localuser.channels.set(channel.id, channel); |
| 1878 | channel.resolveparent(this); |
| 1879 | const par = this.localuser.channels.get(channel.parentId as string); |
| 1880 | par?.createguildHTML(); |
| 1881 | } else { |
| 1882 | this.loadChannel(); |
no test coverage detected