mirror of
https://github.com/markqvist/Sideband.git
synced 2025-11-16 05:49:07 -05:00
Strip emojis from Linux notifications
This commit is contained in:
parent
381c437886
commit
88d3d5ed95
2 changed files with 13 additions and 1 deletions
|
|
@ -786,9 +786,14 @@ class SidebandCore():
|
|||
RNS.log("Error while setting LXMF propagation node: "+str(e), RNS.LOG_ERROR)
|
||||
|
||||
def notify(self, title, content, group=None, context_id=None):
|
||||
if RNS.vendor.platformutils.is_linux():
|
||||
from sbapp.ui.helpers import strip_emojis
|
||||
title = strip_emojis(title)
|
||||
content = strip_emojis(content)
|
||||
|
||||
if not self.is_daemon:
|
||||
if self.config["notifications_on"]:
|
||||
if RNS.vendor.platformutils.get_platform() == "android":
|
||||
if RNS.vendor.platformutils.is_android():
|
||||
if self.getpersistent("permissions.notifications"):
|
||||
notifications_permitted = True
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue