-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MM-55152] Add new Desktop API endpoints, improve preload script, some clean-up #2900
Changes from 15 commits
37c95d6
3f03ee3
0f21faf
dcd925d
2f00c90
4ef50bb
f64aad0
8a8d984
8ede07c
1479976
f1065c2
6aff875
da4c97a
96224f8
7fbbc81
e7a06fa
ccf282b
77e5f5b
52704b0
3975133
965c49a
d9bece0
02d80b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ fastlane/README.md | |
fastlane/report.xml | ||
|
||
*.provisionprofile | ||
|
||
src/types/api/lib/* |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ export class AppState extends EventEmitter { | |
updateExpired = (viewId: string, expired: boolean) => { | ||
ServerManager.getViewLog(viewId, 'AppState').silly('updateExpired', expired); | ||
|
||
this.unreads.set(viewId, expired); | ||
this.expired.set(viewId, expired); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was just wrong :P |
||
this.emitStatusForView(viewId); | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
import {app, IpcMainEvent, IpcMainInvokeEvent, Menu} from 'electron'; | ||
|
||
import {UniqueServer} from 'types/config'; | ||
import {MentionData} from 'types/notification'; | ||
|
||
import ServerViewState from 'app/serverViewState'; | ||
|
||
|
@@ -114,9 +113,9 @@ export function handleWelcomeScreenModal() { | |
} | ||
} | ||
|
||
export function handleMentionNotification(event: IpcMainEvent, title: string, body: string, channel: {id: string}, teamId: string, url: string, silent: boolean, data: MentionData) { | ||
log.debug('handleMentionNotification', {title, body, channel, teamId, url, silent, data}); | ||
NotificationManager.displayMention(title, body, channel, teamId, url, silent, event.sender, data); | ||
export function handleMentionNotification(event: IpcMainEvent, title: string, body: string, channelId: string, teamId: string, url: string, silent: boolean, soundName: string) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simplified this since we should be more specific about what these calls expect. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does changing this cause any issues for old web apps, or is it this just called from the desktop app itself? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just called from the Desktop itself, I do some "magic" in the preload script to account for the legacy case so that we could fix it properly here. |
||
log.debug('handleMentionNotification', {title, body, channelId, teamId, url, silent, soundName}); | ||
NotificationManager.displayMention(title, body, channelId, teamId, url, silent, event.sender, soundName); | ||
} | ||
|
||
export function handleOpenAppMenu() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These logs kept just getting in the way as some of these methods are called very frequently (ie. on every click) so I changed the logging level on them.