Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch

Review Request #2738 — Created Oct. 26, 2023 and submitted

Information

pidgin/pidgin
default

Reviewers

This should simplify the process of starting up the history API as it puts the
work into libpurple which will fallback to an in-memory history adapter if the
UI did not provide one.

Ran the unit tests under valgrind.
Also sent some messages to the echo bot with Pidgin.

Summary ID
Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
This shuold simplify the process of starting up the history API as it puts the work into libpurple which will fallback to an in memory history adapter if the ui did not provide one.
d34320d577eafefe6a900258c635b74b27060164
Description From Last Updated

Do we need to register the weak pointer cleanup for default_manager here?

QuLogicQuLogic

in-memory

QuLogicQuLogic
grim
QuLogic
  1. 
      
  2. libpurple/purplehistorymanager.c (Diff revision 1)
     
     
    Show all issues

    Do we need to register the weak pointer cleanup for default_manager here?

    1. Oh, this code predates all of that, but we should for sure do that!

  3. libpurple/purpleui.h (Diff revision 1)
     
     
    Show all issues

    in-memory

  4. 
      
grim
QuLogic
  1. Ship It!
  2. 
      
grim
Review request changed
Status:
Completed