Skip to content
Snippets Groups Projects
  1. Apr 19, 2022
  2. Apr 18, 2022
  3. Apr 15, 2022
  4. Apr 14, 2022
  5. Apr 11, 2022
    • Mohammed Sadiq's avatar
      mm-chat: Emit "changed" after unread is completely set · 805f97f5
      Mohammed Sadiq authored
      When the signal is emitted, all callback handlers are run immediately.
      And so, if the callback sets unread count to zero, it's not actually
      saved properly to db as the previous change to db is commited after the
      callbacks are run.
      
      Fix it by emitting the signal after all changes are commited
      
      Fixes #689
      805f97f5
  6. Mar 26, 2022
  7. Mar 22, 2022
  8. Mar 19, 2022
  9. Mar 18, 2022
  10. Mar 11, 2022
  11. Mar 01, 2022
  12. Feb 27, 2022
    • Evangelos Ribeiro Tzaras's avatar
      matrix: Use G_GSIZE_FORMAT as format identifier for size types · f0996baf
      Evangelos Ribeiro Tzaras authored
      In file included from ../src/matrix/matrix-api.c:29:
      ../src/matrix/matrix-api.c: In function ‘handle_one_time_keys’:
      ../src/matrix/matrix-api.c:554:23: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
        554 |     CHATTY_TRACE_MSG ("generating %lu onetime keys", limit - count);
            |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~
            |                                                            |
            |                                                            size_t {aka unsigned int}
      ../src/chatty-log.h:25:26: note: in definition of macro ‘CHATTY_TRACE_MSG’
         25 |               G_STRFUNC, fmt, ##__VA_ARGS__)
            |                          ^~~
      ../src/matrix/matrix-api.c:554:37: note: format string is defined here
        554 |     CHATTY_TRACE_MSG ("generating %lu onetime keys", limit - count);
            |                                   ~~^
            |                                     |
            |                                     long unsigned int
            |                                   %u
      f0996baf
    • Evangelos Ribeiro Tzaras's avatar
      mmsd: Use gsize type and suitable format identifier · 9c627f52
      Evangelos Ribeiro Tzaras authored
      Fixes warnings on some architectures:
      
      ../src/mm/chatty-mmsd.c: In function ‘chatty_mmsd_send_mms_create_attachments’:
      ../src/mm/chatty-mmsd.c:485:18: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘gsize’ {aka ‘unsigned int’} [-Wformat=]
        485 |       g_warning ("Size of attachments that can't be resized %ld greater then maximum attachment size %d",
            |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        486 |                  other_attachments_size, self->max_attach_size);
            |                  ~~~~~~~~~~~~~~~~~~~~~~
            |                  |
            |                  gsize {aka unsigned int}
      /usr/include/glib-2.0/glib/gmessages.h:323:63: note: in definition of macro ‘g_warning’
        323 |                                                    G_STRFUNC, __VA_ARGS__)
            |                                                               ^~~~~~~~~~~
      ../src/mm/chatty-mmsd.c:485:63: note: format string is defined here
        485 |       g_warning ("Size of attachments that can't be resized %ld greater then maximum attachment size %d",
            |                                                             ~~^
            |                                                               |
            |                                                               long int
            |                                                             %d
      9c627f52
    • Evangelos Ribeiro Tzaras's avatar
      media: Use G_GSIZE_FORMAT as format identifier for size types · 8aba0ba9
      Evangelos Ribeiro Tzaras authored
      Fixes warnings on some architectures:
      
      ../src/chatty-media.c: In function ‘chatty_media_scale_image_to_size_sync’:
      ../src/chatty-media.c:205:16: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘gsize’ {aka ‘unsigned int’} [-Wformat=]
        205 |       g_debug ("Resized at quality %s to size %lu", *quality, new_size);
            |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            ~~~~~~~~
            |                                                               |
            |                                                               gsize {aka unsigned int}
      /usr/include/glib-2.0/glib/gmessages.h:329:63: note: in definition of macro ‘g_debug’
        329 |                                                    G_STRFUNC, __VA_ARGS__)
            |                                                               ^~~~~~~~~~~
      ../src/chatty-media.c:205:49: note: format string is defined here
        205 |       g_debug ("Resized at quality %s to size %lu", *quality, new_size);
            |                                               ~~^
            |                                                 |
            |                                                 long unsigned int
            |                                               %u
      8aba0ba9
  13. Feb 25, 2022
  14. Feb 19, 2022
  15. Feb 08, 2022
  16. Feb 04, 2022
  17. Feb 03, 2022
  18. Feb 02, 2022
  19. Feb 01, 2022
  20. Jan 31, 2022
Loading