bitlbee-facebook icon indicating copy to clipboard operation
bitlbee-facebook copied to clipboard

Added option to leave group

Open KamalGalrani opened this issue 8 years ago • 5 comments

This pull request fetches group chats automatically on login and adds an option to leave a group chat. You can only leave group chats that appear in fbchats. To leave other groups first add them to fbchats using chat add facebook <thread_id> #<channel>

Usage

To leave group chats using fbchats index

> fbchats facebook
> fbleave facebook <index>

To leave group chats using thread id

> fbleave facebook <thread_id>

KamalGalrani avatar Feb 25 '17 11:02 KamalGalrani

UPDATE:

To leave group chats using channel name

> fbleave facebook <channel_name>

KamalGalrani avatar Feb 25 '17 14:02 KamalGalrani

Thanks but I'm not sure I like this approach. I'd prefer to reduce the amount of root commands added by this plugin - I was already working on removing fbjoin and fbchats.

Bitlbee specific code must not be used outside of facebook.c, since all the other files are shared with purple-facebook

dequis avatar Feb 25 '17 19:02 dequis

The block is simply declaration of all the functions defined in facebook.c. I was using fb_cmd_fbchats in fb_login when I realized that the function is defined after fb_login. So I just put declaration of all the functions in the beginning of file for convenience. All but 2 declarations can be removed.

How are you planning to do away with fbjoin and fbchats?

I don't think there is any bitlbee specific code outside facebook.c in the pull request.

KamalGalrani avatar Feb 26 '17 01:02 KamalGalrani

I would like to see this feature. Can it be accepted or has something similar been implemented? Leaving facebook group chats.

gautelund avatar Jun 13 '18 20:06 gautelund

Could you bridge it with /PART?

Thaodan avatar Oct 21 '20 18:10 Thaodan