forked from Ivasoft/mattermost-mobile
[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:
committed by
GitHub
parent
d8c77855b1
commit
102789bbd9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user