about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-06 22:32:58 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-06 22:32:58 +0200
commit147be3afdfd2f87e989450bf0cddddfa9e817e24 (patch)
tree29e79a23fc9b10836e43e4f997cfba79f14106fb /tests/unittests
parent7d7997e93c281cbaa532492005fd269a9ab0d808 (diff)
downloadprofani-tty-147be3afdfd2f87e989450bf0cddddfa9e817e24.tar.gz
Don't log own messages on incoming MUC
`sv_ev_room_message()` called `groupchat_log_msg_in()` to log all
incoming MUC messages.

`cl_ev_send_muc_msg()` calls `groupchat_log_msg_out()`.

So messages sent by the user himself was logged two times.

Filter the incoming messages and only log the ones not from our occupant
jid/nick.

Fix https://github.com/profanity-im/profanity/issues/1201
Diffstat (limited to 'tests/unittests')
0 files changed, 0 insertions, 0 deletions
a id='n109' href='#n109'>109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216