[Gekidou MM-40089 MM-39318] CRT New Messages Line (#6489)

* New Messages Line + More Messages

* Misc

* Update app/actions/local/thread.ts

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
This commit is contained in:
Anurag Shivarathri
2022-07-22 17:28:14 +05:30
committed by GitHub
parent d8c77855b1
commit 102789bbd9
13 changed files with 117 additions and 33 deletions

View File

@@ -18,7 +18,7 @@ class EphemeralStore {
private archivingChannels = new Set<string>();
private convertingChannels = new Set<string>();
private switchingToChannel = new Set<string>();
private lastViewedThreadId = '';
private currentThreadId = '';
// Ephemeral control when (un)archiving a channel locally
addArchivingChannel = (channelId: string) => {
@@ -95,12 +95,12 @@ class EphemeralStore {
};
// Ephemeral for the last viewed thread
getLastViewedThreadId = () => {
return this.lastViewedThreadId;
getCurrentThreadId = () => {
return this.currentThreadId;
};
setLastViewedThreadId = (id: string) => {
this.lastViewedThreadId = id;
setCurrentThreadId = (id: string) => {
this.currentThreadId = id;
};
// Ephemeral control when (un)archiving a channel locally