summaryrefslogtreecommitdiff
path: root/pcr/tootle/handle-unknown-message-types.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/tootle/handle-unknown-message-types.patch')
-rw-r--r--pcr/tootle/handle-unknown-message-types.patch56
1 files changed, 0 insertions, 56 deletions
diff --git a/pcr/tootle/handle-unknown-message-types.patch b/pcr/tootle/handle-unknown-message-types.patch
deleted file mode 100644
index 4653b2675..000000000
--- a/pcr/tootle/handle-unknown-message-types.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-diff --git a/src/API/NotificationType.vala b/src/API/NotificationType.vala
-index 53598b5..25c2b2c 100644
---- a/src/API/NotificationType.vala
-+++ b/src/API/NotificationType.vala
-@@ -4,7 +4,8 @@ public enum Tootle.NotificationType {
- FAVORITE,
- FOLLOW,
- FOLLOW_REQUEST, // Internal
-- WATCHLIST; // Internal
-+ WATCHLIST, // Internal
-+ UNKNOWN; // Fallback
-
- public string to_string() {
- switch (this) {
-@@ -20,8 +21,9 @@ public enum Tootle.NotificationType {
- return "follow_request";
- case WATCHLIST:
- return "watchlist";
-+ case UNKNOWN:
- default:
-- assert_not_reached();
-+ return "unknown";
- }
- }
-
-@@ -39,8 +41,9 @@ public enum Tootle.NotificationType {
- return FOLLOW_REQUEST;
- case "watchlist":
- return WATCHLIST;
-+ case "unknown":
- default:
-- assert_not_reached();
-+ return UNKNOWN;
- }
- }
-
-@@ -58,6 +61,8 @@ public enum Tootle.NotificationType {
- return _("<a href=\"%s\"><b>%s</b></a> wants to follow you").printf (account.url, account.display_name);
- case WATCHLIST:
- return _("<a href=\"%s\"><b>%s</b></a> posted a toot").printf (account.url, account.display_name);
-+ case UNKNOWN:
-+ return _("<a href=\"%s\"><b>%s</b></a> posted an unrecognized type of message").printf (account.url, account.display_name);
- default:
- assert_not_reached();
- }
-@@ -75,8 +80,9 @@ public enum Tootle.NotificationType {
- case FOLLOW:
- case FOLLOW_REQUEST:
- return "contact-new-symbolic";
-+ case UNKNOWN:
- default:
-- assert_not_reached();
-+ return "dialog-warning";
- }
- }
-