mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Revert "feat(bot): remove double push notifications"
This reverts commit 9a6254c01f.
This commit is contained in:
parent
74a374a0a7
commit
b898b01680
2 changed files with 1 additions and 6 deletions
|
|
@ -217,10 +217,6 @@ public class ProxyService
|
|||
var senderPermissions = PermissionExtensions.PermissionsFor(guild, messageChannel, trigger.Author.Id, guildMember);
|
||||
var tts = match.Member.Tts && senderPermissions.HasFlag(PermissionSet.SendTtsMessages);
|
||||
|
||||
//We suppress notifications so that people don't get double push notifications. Pings and unreads are not suppressed.
|
||||
Message.MessageFlags flags = Message.MessageFlags.SuppressNotifications;
|
||||
flags = trigger.Flags.HasFlag(Message.MessageFlags.VoiceMessage) ? flags | Message.MessageFlags.VoiceMessage : flags;
|
||||
|
||||
var proxyMessage = await _webhookExecutor.ExecuteWebhook(new ProxyRequest
|
||||
{
|
||||
GuildId = trigger.GuildId!.Value,
|
||||
|
|
@ -235,7 +231,7 @@ public class ProxyService
|
|||
Embeds = embeds.ToArray(),
|
||||
Stickers = trigger.StickerItems,
|
||||
AllowEveryone = allowEveryone,
|
||||
Flags = flags,
|
||||
Flags = trigger.Flags.HasFlag(Message.MessageFlags.VoiceMessage) ? Message.MessageFlags.VoiceMessage : null,
|
||||
Tts = tts,
|
||||
Poll = trigger.Poll,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue