Changeset View
Changeset View
Standalone View
Standalone View
lib/types/thread-types.js
Show First 20 Lines • Show All 467 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
export type SidebarInfo = { | export type SidebarInfo = { | ||||
+threadInfo: ThreadInfo, | +threadInfo: ThreadInfo, | ||||
+lastUpdatedTime: number, | +lastUpdatedTime: number, | ||||
+mostRecentNonLocalMessage: ?string, | +mostRecentNonLocalMessage: ?string, | ||||
}; | }; | ||||
export type ToggleMessagePinRequest = { | |||||
+messageID: string, | |||||
+action: 'pin' | 'unpin', | |||||
}; | |||||
// We can show a max of 3 sidebars inline underneath their parent in the chat | // We can show a max of 3 sidebars inline underneath their parent in the chat | ||||
// tab. If there are more, we show a button that opens a modal to see the rest | // tab. If there are more, we show a button that opens a modal to see the rest | ||||
export const maxReadSidebars = 3; | export const maxReadSidebars = 3; | ||||
// We can show a max of 5 sidebars inline underneath their parent | // We can show a max of 5 sidebars inline underneath their parent | ||||
// in the chat tab if every one of the displayed sidebars is unread | // in the chat tab if every one of the displayed sidebars is unread | ||||
export const maxUnreadSidebars = 5; | export const maxUnreadSidebars = 5; |