aboutsummaryrefslogtreecommitdiff
path: root/net-im/spectral/files/patch-src_spectralroom.cpp
blob: 5512f808d2f5f4072b0481ac7edbfcd7054dd403 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Avoid compiler error.

These two events cause template substitution errors. Since the
effect of removing them is that we don't get a nice name for
the events (user-facing), it's not essential.


--- src/spectralroom.cpp.orig	2020-06-15 18:48:37 UTC
+++ src/spectralroom.cpp
@@ -354,11 +354,13 @@ QString SpectralRoom::eventToString(const RoomEvent& e
         return tr("has set room aliases on server %1 to: %2")
             .arg(e.stateKey(), QLocale().createSeparatedList(e.aliases()));
       },
+/*
       [](const RoomCanonicalAliasEvent& e) {
         return (e.alias().isEmpty())
                    ? tr("cleared the room main alias")
                    : tr("set the room main alias to: %1").arg(e.alias());
       },
+*/
       [](const RoomNameEvent& e) {
         return (e.name().isEmpty()) ? tr("cleared the room name")
                                     : tr("set the room name to: %1")
@@ -372,9 +374,11 @@ QString SpectralRoom::eventToString(const RoomEvent& e
                                           : e.topic());
       },
       [](const RoomAvatarEvent&) { return tr("changed the room avatar"); },
+/*
       [](const EncryptionEvent&) {
         return tr("activated End-to-End Encryption");
       },
+*/
       [](const RoomCreateEvent& e) {
         return (e.isUpgrade() ? tr("upgraded the room to version %1")
                               : tr("created the room, version %1"))