Changeset 2781283
- Timestamp:
- 09/07/2022 11:48:26 AM (4 years ago)
- Location:
- flair-chat
- Files:
-
- 4 added
- 2 deleted
- 6 edited
- 1 copied
-
tags/1.0.6 (copied) (copied from flair-chat/trunk)
-
tags/1.0.6/assets/con-128x128.gif (deleted)
-
tags/1.0.6/assets/icon-128x128.gif (added)
-
tags/1.0.6/docs.md (added)
-
tags/1.0.6/flair-chat.php (modified) (4 diffs)
-
tags/1.0.6/readme.md (modified) (4 diffs)
-
tags/1.0.6/readme.txt (modified) (2 diffs)
-
trunk/assets/con-128x128.gif (deleted)
-
trunk/assets/icon-128x128.gif (added)
-
trunk/docs.md (added)
-
trunk/flair-chat.php (modified) (4 diffs)
-
trunk/readme.md (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flair-chat/tags/1.0.6/flair-chat.php
r2781255 r2781283 7 7 * Plugin URI: https://wordpress.org/plugins/flair-chat/ 8 8 * Description: Real time chat feature for wordpress. 9 * Version: 1.0. 49 * Version: 1.0.6 10 10 * Author: Nicholas Babu 11 11 * Author URI: https://profiles.wordpress.org/bahson/ … … 226 226 } 227 227 228 $users = apply_filters('flair_chat_load_users', $users); 228 229 229 230 // Template … … 407 408 'to_uid' => $params['receiver_id'], 408 409 'is_read' => false, 409 //'created_at' => current_time( 'timestamp')410 'should_send' => true, 410 411 ); 411 412 412 413 $table = $wpdb->prefix . "flair_chat_messages"; 413 414 414 $ new_message = $wpdb->insert( $table, $message_data);415 $message_data = apply_filters('flair_chat_sent_message', $message_data); 415 416 416 417 $data = [ … … 420 421 ]; 421 422 422 423 $this->pusher->trigger( 'my-channel', 'dru-chat-event', $data ); 423 if ($message_data['should_send']) { 424 unset($message_data['should_send']); 425 $new_message = $wpdb->insert( $table, $message_data ); 426 $this->pusher->trigger( 'my-channel', 'dru-chat-event', $data ); 427 428 } 424 429 425 430 return new WP_REST_Response( $data ); -
flair-chat/tags/1.0.6/readme.md
r2781255 r2781283 1 # Flair Chat1 #  2 2 - Contributors: bahson 3 3 - Donate link: https://flaircore.com/flair-core/paypal_payment … … 5 5 - Requires at least: 5.7 6 6 - Tested up to: 6.0 7 - Stable tag: 1.0. 57 - Stable tag: 1.0.6 8 8 - Requires PHP: 7.0 9 9 - License: GPLv2 or later … … 12 12 Flair Chat provides a real time chat feature for your logged in users. Allows them to send and receive messages. 13 13 14 ### Description14 ###  15 15 16 16 This WordPress plugin provides a live chat block for logged in users only, … … 70 70 71 71 Fixed count unread issue, when no users were found. 72 73 = 1.0.6 = 74 75 Added custom filter hooks, so developers can easily extend/build on this plugin. 76 These are; 77 * flair_chat_load_users: 78 * flair_chat_sent_message: 79 See docs.md for more details -
flair-chat/tags/1.0.6/readme.txt
r2781255 r2781283 5 5 Requires at least: 5.7 6 6 Tested up to: 6.0 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 78 78 79 79 Fixed count unread issue, when no users were found. 80 81 82 = 1.0.6 = 83 84 Added custom filter hooks, so developers can easily extend/build on this plugin. 85 These are; 86 * flair_chat_load_users: 87 * flair_chat_sent_message: 88 See docs.md for more details -
flair-chat/trunk/flair-chat.php
r2781255 r2781283 7 7 * Plugin URI: https://wordpress.org/plugins/flair-chat/ 8 8 * Description: Real time chat feature for wordpress. 9 * Version: 1.0. 49 * Version: 1.0.6 10 10 * Author: Nicholas Babu 11 11 * Author URI: https://profiles.wordpress.org/bahson/ … … 226 226 } 227 227 228 $users = apply_filters('flair_chat_load_users', $users); 228 229 229 230 // Template … … 407 408 'to_uid' => $params['receiver_id'], 408 409 'is_read' => false, 409 //'created_at' => current_time( 'timestamp')410 'should_send' => true, 410 411 ); 411 412 412 413 $table = $wpdb->prefix . "flair_chat_messages"; 413 414 414 $ new_message = $wpdb->insert( $table, $message_data);415 $message_data = apply_filters('flair_chat_sent_message', $message_data); 415 416 416 417 $data = [ … … 420 421 ]; 421 422 422 423 $this->pusher->trigger( 'my-channel', 'dru-chat-event', $data ); 423 if ($message_data['should_send']) { 424 unset($message_data['should_send']); 425 $new_message = $wpdb->insert( $table, $message_data ); 426 $this->pusher->trigger( 'my-channel', 'dru-chat-event', $data ); 427 428 } 424 429 425 430 return new WP_REST_Response( $data ); -
flair-chat/trunk/readme.md
r2781255 r2781283 1 # Flair Chat1 #  2 2 - Contributors: bahson 3 3 - Donate link: https://flaircore.com/flair-core/paypal_payment … … 5 5 - Requires at least: 5.7 6 6 - Tested up to: 6.0 7 - Stable tag: 1.0. 57 - Stable tag: 1.0.6 8 8 - Requires PHP: 7.0 9 9 - License: GPLv2 or later … … 12 12 Flair Chat provides a real time chat feature for your logged in users. Allows them to send and receive messages. 13 13 14 ### Description14 ###  15 15 16 16 This WordPress plugin provides a live chat block for logged in users only, … … 70 70 71 71 Fixed count unread issue, when no users were found. 72 73 = 1.0.6 = 74 75 Added custom filter hooks, so developers can easily extend/build on this plugin. 76 These are; 77 * flair_chat_load_users: 78 * flair_chat_sent_message: 79 See docs.md for more details -
flair-chat/trunk/readme.txt
r2781255 r2781283 5 5 Requires at least: 5.7 6 6 Tested up to: 6.0 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 78 78 79 79 Fixed count unread issue, when no users were found. 80 81 82 = 1.0.6 = 83 84 Added custom filter hooks, so developers can easily extend/build on this plugin. 85 These are; 86 * flair_chat_load_users: 87 * flair_chat_sent_message: 88 See docs.md for more details
Note: See TracChangeset
for help on using the changeset viewer.