Philipp Hörist pushed to branch gajim_1.1 at gajim / gajim

Commits:

4 changed files:

Changes:

  • ChangeLog
    1
    +Gajim 1.1.2 (11 January 2019)
    
    2
    +
    
    3
    +  Bug fixes
    
    4
    +
    
    5
    +  * #9518 Windows: Pressing "^" yields "^^"
    
    6
    +  * #9522 Windows: Switching keyboard layouts leads to a crash
    
    7
    +  * #9525 Windows/Mac: Links are not clickable in the About dialog
    
    8
    +  * #9535 Jingle Audio: Update codecs
    
    9
    +  * DBus: Correctly raise NewMessage signal
    
    10
    +  * Clicking on tray notifications does not open the chat
    
    11
    +
    
    1 12
     Gajim 1.1.1 (23 December 2018)
    
    2 13
     
    
    3 14
       Bug fixes
    
    4 15
     
    
    5
    -  * 8362 DBus: Incorrect unread message count
    
    6
    -  * 9427 Placeholder not cleared if pasting text into message input
    
    7
    -  * 9444 Determine the delay timestamp correctly when using mam:1
    
    8
    -  * 9453 Fix opening links inside the group chat subject (MacOS/Windows)
    
    9
    -  * 9465 Allow the full range of possible nicknames in group chats
    
    10
    -  * 9067 Gajim crashes when receiving xhtml messages
    
    11
    -  * 9096 Error when clicking on a subscription notification
    
    12
    -  * 9446 Chatstate error in MUC conversation
    
    13
    -  * 9471 Conversation Textview: Error on key press
    
    14
    -  * 9472 Handle presences without from attr correctly
    
    15
    -  * 9473 Error when creating a new group chat
    
    16
    -  * 9491 Identify group chat subject changes correctly
    
    17
    -  * 9496 Error on MUC roster selection change
    
    16
    +  * #8362 DBus: Incorrect unread message count
    
    17
    +  * #9427 Placeholder not cleared if pasting text into message input
    
    18
    +  * #9444 Determine the delay timestamp correctly when using mam:1
    
    19
    +  * #9453 Fix opening links inside the group chat subject (MacOS/Windows)
    
    20
    +  * #9465 Allow the full range of possible nicknames in group chats
    
    21
    +  * #9067 Gajim crashes when receiving xhtml messages
    
    22
    +  * #9096 Error when clicking on a subscription notification
    
    23
    +  * #9446 Chatstate error in MUC conversation
    
    24
    +  * #9471 Conversation Textview: Error on key press
    
    25
    +  * #9472 Handle presences without from attr correctly
    
    26
    +  * #9473 Error when creating a new group chat
    
    27
    +  * #9491 Identify group chat subject changes correctly
    
    28
    +  * #9496 Error on MUC roster selection change
    
    18 29
       * Determine soundplayer correctly on unix systems
    
    19 30
       * In some circumstances plugins could not be deleted
    
    20 31
       * Show correct contact status on tabs
    
    ... ... @@ -36,13 +47,13 @@ Gajim 1.1.0 (06 November 2018)
    36 47
     
    
    37 48
       Bug fixes
    
    38 49
     
    
    39
    -  * 8968 Windows: Gajim loads DLLs from wrong location
    
    40
    -  * 9322 Error when adding contact
    
    41
    -  * 9357 Acquire sleep inhibtor correctly after sleep
    
    42
    -  * 9385 Ignore invalid bookmarks
    
    43
    -  * 9386 Discovery: Browsing nodes without identity
    
    44
    -  * 9393 Error when parsing invalid timestamps
    
    45
    -  * 9398 Error on jingle file transfer
    
    50
    +  * #8968 Windows: Gajim loads DLLs from wrong location
    
    51
    +  * #9322 Error when adding contact
    
    52
    +  * #9357 Acquire sleep inhibtor correctly after sleep
    
    53
    +  * #9385 Ignore invalid bookmarks
    
    54
    +  * #9386 Discovery: Browsing nodes without identity
    
    55
    +  * #9393 Error when parsing invalid timestamps
    
    56
    +  * #9398 Error on jingle file transfer
    
    46 57
     
    
    47 58
     Gajim 1.0.99.1 (07 October 2018)
    
    48 59
     
    
    ... ... @@ -59,17 +70,17 @@ Gajim 1.0.99.1 (07 October 2018)
    59 70
     
    
    60 71
       Bug fixes
    
    61 72
     
    
    62
    -  * 9198 Creating new MUCs with captial letters is not possible
    
    63
    -  * 9210 Error when clicking on new message indicator
    
    64
    -  * 9280 Inviting users to a MUC causes error
    
    65
    -  * 9301 Error when opening service discovery window
    
    66
    -  * 9309 Error when clicking on a groupchat invite notification
    
    67
    -  * 9311 Error when requesting server info
    
    68
    -  * 9117 Windows UAC changes status not available
    
    69
    -  * 9324 No menus/dialogs on Win7
    
    70
    -  * 9326 IPV6 Connection problem on Win10
    
    71
    -  * 9334 Joining big MUCs takes very long
    
    72
    -  * 9339 Error caused by remote_control
    
    73
    +  * #9198 Creating new MUCs with captial letters is not possible
    
    74
    +  * #9210 Error when clicking on new message indicator
    
    75
    +  * #9280 Inviting users to a MUC causes error
    
    76
    +  * #9301 Error when opening service discovery window
    
    77
    +  * #9309 Error when clicking on a groupchat invite notification
    
    78
    +  * #9311 Error when requesting server info
    
    79
    +  * #9117 Windows UAC changes status not available
    
    80
    +  * #9324 No menus/dialogs on Win7
    
    81
    +  * #9326 IPV6 Connection problem on Win10
    
    82
    +  * #9334 Joining big MUCs takes very long
    
    83
    +  * #9339 Error caused by remote_control
    
    73 84
     
    
    74 85
     Gajim 1.0.99 (19 August 2018)
    
    75 86
     
    
    ... ... @@ -92,16 +103,16 @@ Gajim 1.0.99 (19 August 2018)
    92 103
     
    
    93 104
       Bug fixes
    
    94 105
     
    
    95
    -  * 8658 Translation doesnt work on Windows
    
    96
    -  * 8750 Increase time frame for duplicate search in MUCs
    
    97
    -  * 9138 Translation in Flatpak does not work
    
    98
    -  * 9140 Error when clicking on the notification of an incoming message
    
    99
    -  * 9159 Wrong form type when responding to a voice request
    
    100
    -  * 9069 Send cancel IQ if muc configuration is aborted 
    
    101
    -  * 9167 Flatpak fails to determine locale settings
    
    102
    -  * 9171 Gajim requests vcard multiple times
    
    103
    -  * 9198 Creating new MUCs with capital letters is not possible
    
    104
    -  * 9211 Punycode and Unicode with Internationalized Domain Names
    
    106
    +  * #8658 Translation doesnt work on Windows
    
    107
    +  * #8750 Increase time frame for duplicate search in MUCs
    
    108
    +  * #9138 Translation in Flatpak does not work
    
    109
    +  * #9140 Error when clicking on the notification of an incoming message
    
    110
    +  * #9159 Wrong form type when responding to a voice request
    
    111
    +  * #9069 Send cancel IQ if muc configuration is aborted 
    
    112
    +  * #9167 Flatpak fails to determine locale settings
    
    113
    +  * #9171 Gajim requests vcard multiple times
    
    114
    +  * #9198 Creating new MUCs with capital letters is not possible
    
    115
    +  * #9211 Punycode and Unicode with Internationalized Domain Names
    
    105 116
     
    
    106 117
       Other changes
    
    107 118
     
    
    ... ... @@ -123,9 +134,9 @@ Gajim 1.0.3 (20 May 2018)
    123 134
     
    
    124 135
       Bugs fixed:
    
    125 136
     
    
    126
    -  * 8296 Fix errors on roster updates after stream management resume
    
    127
    -  * 9106 Convert font weight from pango to css values
    
    128
    -  * 9124 Bring ChatControl to front when notification is clicked
    
    137
    +  * #8296 Fix errors on roster updates after stream management resume
    
    138
    +  * #9106 Convert font weight from pango to css values
    
    139
    +  * #9124 Bring ChatControl to front when notification is clicked
    
    129 140
     
    
    130 141
       * Set no-store hint on groupchat chatstates
    
    131 142
       * Dont show OOB uri if message body is the same
    
    ... ... @@ -139,26 +150,26 @@ Gajim 1.0.2 (30 April 2018)
    139 150
     
    
    140 151
       Bugs fixed:
    
    141 152
     
    
    142
    -  * 7879 Server name is rejected for group chat bookmarks
    
    143
    -  * 8964 setup.py install misses some files if used with "--skip-build"
    
    144
    -  * 9017 Password was sometimes stored in plaintext
    
    145
    -  * 9022 Dont show error when receiving invalid avatars
    
    146
    -  * 9031 Windows: Always hide roster window on X
    
    147
    -  * 9038 No License in About dialog
    
    148
    -  * 9039 Encode filenames before sending
    
    149
    -  * 9044 Catch invalid IQ stanzas and log them
    
    150
    -  * 9049 XMPP logo in "Add New Contact" window instead Gajim logo
    
    151
    -  * 9050 Mark some strings as translatable
    
    152
    -  * 9054 Error on file send completion
    
    153
    -  * 9055 Removing a bookmark causes error
    
    154
    -  * 9057 Avatar is deleted when updating vCard
    
    155
    -  * 9065 Account label isn't change in tooltip of notification area icon
    
    156
    -  * 9066 Placeholder text does't disappear
    
    157
    -  * 9068 Missing pulseaudio in Flatpak image
    
    158
    -  * 9070 Fix History Manager search
    
    159
    -  * 9074 Proxy comobobox in accounts/connections doesn't get update after ManageProxies
    
    160
    -  * 9094 problem receiving file
    
    161
    -  * 9101 Notification never autohides in gnome
    
    153
    +  * #7879 Server name is rejected for group chat bookmarks
    
    154
    +  * #8964 setup.py install misses some files if used with "--skip-build"
    
    155
    +  * #9017 Password was sometimes stored in plaintext
    
    156
    +  * #9022 Dont show error when receiving invalid avatars
    
    157
    +  * #9031 Windows: Always hide roster window on X
    
    158
    +  * #9038 No License in About dialog
    
    159
    +  * #9039 Encode filenames before sending
    
    160
    +  * #9044 Catch invalid IQ stanzas and log them
    
    161
    +  * #9049 XMPP logo in "Add New Contact" window instead Gajim logo
    
    162
    +  * #9050 Mark some strings as translatable
    
    163
    +  * #9054 Error on file send completion
    
    164
    +  * #9055 Removing a bookmark causes error
    
    165
    +  * #9057 Avatar is deleted when updating vCard
    
    166
    +  * #9065 Account label isn't change in tooltip of notification area icon
    
    167
    +  * #9066 Placeholder text does't disappear
    
    168
    +  * #9068 Missing pulseaudio in Flatpak image
    
    169
    +  * #9070 Fix History Manager search
    
    170
    +  * #9074 Proxy comobobox in accounts/connections doesn't get update after ManageProxies
    
    171
    +  * #9094 problem receiving file
    
    172
    +  * #9101 Notification never autohides in gnome
    
    162 173
     
    
    163 174
       * Correctly reload Plugins
    
    164 175
       * Save history export with utf8 encoding
    

  • gajim/common/jingle_rtp.py
    ... ... @@ -301,8 +301,9 @@ class JingleRTPContent(JingleContent):
    301 301
                 attrs = {
    
    302 302
                     'name': codec.encoding_name,
    
    303 303
                     'id': codec.id,
    
    304
    -                'channels': codec.channels
    
    305 304
                 }
    
    305
    +            if codec.channels > 0:
    
    306
    +                attrs['channels'] = codec.channels
    
    306 307
                 if codec.clock_rate:
    
    307 308
                     attrs['clockrate'] = codec.clock_rate
    
    308 309
                 if codec.optional_params:
    
    ... ... @@ -350,18 +351,35 @@ class JingleAudio(JingleRTPContent):
    350 351
         def setup_stream(self):
    
    351 352
             JingleRTPContent.setup_stream(self, self._on_src_pad_added)
    
    352 353
     
    
    353
    -        # Configure SPEEX
    
    354
    -        # Workaround for psi (not needed since rev
    
    355
    -        # 147aedcea39b43402fe64c533d1866a25449888a):
    
    356
    -        #  place 16kHz before 8kHz, as buggy psi versions will take in
    
    357
    -        #  account only the first codec
    
    358
    -
    
    359
    -        codecs = [
    
    354
    +        # list of codecs that are explicitly allowed
    
    355
    +        allow_codecs = [
    
    356
    +            Farstream.Codec.new(Farstream.CODEC_ID_ANY, 'OPUS',
    
    357
    +                                Farstream.MediaType.AUDIO, 48000),
    
    358
    +            Farstream.Codec.new(Farstream.CODEC_ID_ANY, 'SPEEX',
    
    359
    +                                Farstream.MediaType.AUDIO, 32000),
    
    360 360
                 Farstream.Codec.new(Farstream.CODEC_ID_ANY, 'SPEEX',
    
    361 361
                                     Farstream.MediaType.AUDIO, 16000),
    
    362
    +            Farstream.Codec.new(Farstream.CODEC_ID_ANY, 'G722',
    
    363
    +                                Farstream.MediaType.AUDIO, 8000),
    
    362 364
                 Farstream.Codec.new(Farstream.CODEC_ID_ANY, 'SPEEX',
    
    365
    +                                Farstream.MediaType.AUDIO, 8000),
    
    366
    +            Farstream.Codec.new(Farstream.CODEC_ID_ANY, 'PCMA',
    
    367
    +                                Farstream.MediaType.AUDIO, 8000),
    
    368
    +            Farstream.Codec.new(Farstream.CODEC_ID_ANY, 'PCMU',
    
    363 369
                                     Farstream.MediaType.AUDIO, 8000)]
    
    364
    -        self.p2psession.set_codec_preferences(codecs)
    
    370
    +
    
    371
    +        # disable all other codecs
    
    372
    +        disable_codecs = []
    
    373
    +        codecs_without_config = self.p2psession.props.codecs_without_config
    
    374
    +        allowed_encoding_names = [c.encoding_name for c in allow_codecs] + ['telephone-event']
    
    375
    +        for codec in codecs_without_config:
    
    376
    +            if codec.encoding_name not in allowed_encoding_names:
    
    377
    +                disable_codecs.append(Farstream.Codec.new(Farstream.CODEC_ID_DISABLE,
    
    378
    +                                                          codec.encoding_name,
    
    379
    +                                                          Farstream.MediaType.AUDIO,
    
    380
    +                                                          codec.clock_rate))
    
    381
    +
    
    382
    +        self.p2psession.set_codec_preferences(allow_codecs + disable_codecs)
    
    365 383
     
    
    366 384
             # the local parts
    
    367 385
             # TODO: Add queues?
    

  • gajim/remote_control.py
    ... ... @@ -312,6 +312,8 @@ class GajimRemote(Server):
    312 312
                 ged.POSTGUI, self.on_unsubscribed_presence_received)
    
    313 313
             app.ged.register_event_handler('gc-message-received',
    
    314 314
                 ged.POSTGUI, self.on_gc_message_received)
    
    315
    +        app.ged.register_event_handler('decrypted-message-received',
    
    316
    +            ged.POSTGUI, self._nec_decrypted_message_received)
    
    315 317
             app.ged.register_event_handler('our-show', ged.POSTGUI,
    
    316 318
                 self.on_our_status)
    
    317 319
             app.ged.register_event_handler('account-created', ged.POSTGUI,
    
    ... ... @@ -388,6 +390,12 @@ class GajimRemote(Server):
    388 390
                 obj.timestamp, obj.delayed, obj.xhtml_msgtxt, obj.status_code,
    
    389 391
                 obj.displaymarking, obj.captcha_form, obj.needs_highlight]))
    
    390 392
     
    
    393
    +    def _nec_decrypted_message_received(self, obj):
    
    394
    +        self.raise_signal('NewMessage', (
    
    395
    +            obj.conn.name, [obj.fjid, obj.msgtxt, obj.timestamp,
    
    396
    +            obj.encrypted, obj.mtype, obj.subject,
    
    397
    +            obj.msg_log_id, obj.user_nick, obj.xhtml, obj.form_node]))
    
    398
    +
    
    391 399
         def on_our_status(self, obj):
    
    392 400
             self.raise_signal('AccountPresence', (obj.show, obj.conn.name))
    
    393 401
     
    

  • gajim/session.py
    ... ... @@ -166,12 +166,6 @@ class ChatControlSession:
    166 166
             if not pm:
    
    167 167
                 self.roster_message2(obj)
    
    168 168
     
    
    169
    -        if app.interface.remote_ctrl:
    
    170
    -            app.interface.remote_ctrl.raise_signal('NewMessage', (
    
    171
    -                self.conn.name, [obj.fjid, obj.msgtxt, obj.timestamp,
    
    172
    -                obj.encrypted, obj.mtype, obj.subject,
    
    173
    -                obj.msg_log_id, obj.user_nick, obj.xhtml, obj.form_node]))
    
    174
    -
    
    175 169
         def roster_message2(self, obj):
    
    176 170
             """
    
    177 171
             Display the message or show notification in the roster