Create PurpleMessageModel

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

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)
     
     

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

  3. 
      
grim
grim
grim
ivanhoe
  1. Ship It!
  2. 
      
grim
Review request changed

Change Summary:

Update to birb 0.1.0. I apparently missed the micro when tagging.. whoops...

Commits:

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.
aefe252109cad53d8a91222264da1be58f19d098
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

Diff:

Revision 4 (+2622 -2)

Show changes

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

  3. 
      
Loading...