Create PurpleMessageModel

Review Request #2963 — Created Feb. 20, 2024 and discarded

Information

pidgin/pidgin
default

Reviewers

This is an interface that will allow us to treat other things as messages. We
did something similar in Talkatu to make the input widget a message and this
lets us do the same thing.

This can also be used by the HistoryAdapters when pulling history out of their
backends to make updates and other stuff easier.

This will also be used as a way to transition PurpleMessage away from using
bare strings for authors and other weird things about that API, like flags, and
stuff.

Attachments were skipped for now, as this review request is already quite large.

Ran the unit tests under valgrind.

Summary ID
Create PurpleMessageModel
This is an interface that will allow us to treat other things as messages. We did something similar in Talkatu to make the input widget a message and this lets us do the same thing. This can also be used by the HistoryAdapters when pulling history out of their backends to make updates and other stuff easier. This will also be used as a way to transition PurpleMessage away from using bare strings for authors and other weird things about that API, like flags, and stuff.
7517eb21f0276e9668be2edb9449c836dfcbc245
Description From Last Updated

I'm not sure we can do this the way I was hoping. GListModel refuses to work on interfaces, which would …

grimgrim

Shouldn't this also notify that the delivered property has changed?

ivanhoeivanhoe
ivanhoe
  1. 
      
  2. libpurple/tests/test_message_model.c (Diff revision 1)
     
     
    Show all issues

    Shouldn't this also notify that the delivered property has changed?

  3. 
      
grim
grim
grim
ivanhoe
  1. Ship It!
  2. 
      
grim
grim
  1. 
      
  2. Show all issues

    I'm not sure we can do this the way I was hoping. GListModel refuses to work on interfaces, which would break this.

  3. 
      
grim
Review request changed
Status:
Discarded
Change Summary:

GListModel refuses to work on interfaces, which would break this.