- 02 Sep, 2020 9 commits
-
-
Mohammed Sadiq authored
Use sorted_chat_list, which is now more appropriate.
-
Mohammed Sadiq authored
We now make use of ui_data for tracking various objects. And so we no longer have to lookup in lists to find the objects. Don't differentiate between IM and chats. Use a single liststore for any type of chats, and so we no longer require im_list, and related helper models.
-
Mohammed Sadiq authored
We don't have to list IM chats as buddies are listed separately
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
-
- 01 Sep, 2020 4 commits
-
-
Mohammed Sadiq authored
We were using the wrong variable to check for match resulting in surprising results
-
Mohammed Sadiq authored
So that we don't have to handle memory [de]allocations.
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
Use chatty_manager_add_chat() instead of chatty_manager_add_conversation() So that we have one less API. Also add_chat() adds chat to the right list instead of blindly adding to im_list, which was how it was done until now.
-
- 31 Aug, 2020 6 commits
-
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
libpurple may remove a node to simply add it again. It's hard to know if the removal happened simply to add it again or not. When an actual deletion happen, the associated PurpleConversation is deleted, and so tracking PurpleConversation alone can make this process simpler.
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
Otherwise the chat is simply destroyed, but the user is not left from the active conversation, if any. purple_conversation_destroy() shall do that.
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
-
- 28 Aug, 2020 3 commits
-
-
Mohammed Sadiq authored
This can be useful to get the IM chat of a buddy if it exists. Currently we use a liststore to do so, which shall be removed soon.
-
Mohammed Sadiq authored
We were blindly adding all chats to im_list. Let's check the chat type and add chat to the appropriate list.
-
Mohammed Sadiq authored
If ChattyChat has a PurpleBuddy or PurpleChat already set, the `ui_data` of the PurpleConversation wasn't updated when a conv is set for the chat. So instead, check for PurpleBuddy/PurpleChat after the `ui_data' is updated. Also, remove previously set `ui_data` for the conv already set in the chat, if any.
-
- 27 Aug, 2020 4 commits
-
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
Move all chatty-conversation code to chatty-manager so that we are closer to the plan to make manager alone deal with libpurple
-
Mohammed Sadiq authored
If Return key press is set to send the inserted message, never insert a newline when the key is pressed. This was happening when the message input is empty and thus the Return key press wasn't claimed to send the message. If Return key is pressed with the message input empty, do an arror bell instead Fixes #391
-
- 24 Aug, 2020 2 commits
-
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
"conversation-created" and "chat-joined" signals are emitted immediately after the conversation is created. When the conversation is created, it is handled by chatty_conv_new(), which adds the PurpleConversation to the chat list. So what ever "conversation-created" and "chat-joined" callbacks where doing are already done by chatty_conv_new(). So let's remove these signals and their handlers as nothing is done there.
-
- 21 Aug, 2020 6 commits
-
-
Mohammed Sadiq authored
Code for setting buddy were duplicated. Put them into a function and use that.
-
Mohammed Sadiq authored
Currently `ui_data` variable is not used. Let's use it so that we can eventually remove some list models to handle chat list.
-
Mohammed Sadiq authored
It's valid for a chat to not have a PurpleChat. Also, we don't use purple-chat property to set PurpleChat when creating an object from PurpleConversation. So Let's simply use direct pointer assignment instead of a property so that we can have less code.
-
Mohammed Sadiq authored
Don't duplicate code.
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
And reuse conv->ui_data for saving associated ChattyChat.
-
- 20 Aug, 2020 5 commits
-
-
Mohammed Sadiq authored
There is no reason to use bit twiddling here.
-
Mohammed Sadiq authored
-
Mohammed Sadiq authored
-
Move Purple API to delete a chat to chatty-chat use that API to delete a chat.
-
-
- 19 Aug, 2020 1 commit
-
-
We were always passing NULL as db
-