[polari] telepathyClient: Removed unused helper method



commit 7189a9a99f72d7c4e7fda2e0ac8693e8e10bc5ee
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Aug 16 16:23:38 2021 +0200

    telepathyClient: Removed unused helper method
    
    Commit 042d62b66e moved the code inline without removing the method
    at the same time.
    
    https://gitlab.gnome.org/GNOME/polari/-/merge_requests/213

 src/telepathyClient.js | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/src/telepathyClient.js b/src/telepathyClient.js
index aca5ec7f..31b57805 100644
--- a/src/telepathyClient.js
+++ b/src/telepathyClient.js
@@ -401,19 +401,6 @@ class TelepathyClient extends Tp.BaseClient {
         this._connectRooms(account);
     }
 
-    async _sendMessage(channel, message) {
-        if (!message || !channel)
-            return;
-
-        let type = Tp.ChannelTextMessageType.NORMAL;
-        try {
-            await channel.send_message_async(
-                Tp.ClientMessage.new_text(type, message), 0);
-        } catch (e) {
-            log(`Failed to send message: ${e.message}`);
-        }
-    }
-
     _onConnectAccountActivated(action, parameter) {
         let accountPath = parameter.deep_unpack();
         let account = this._accountsMonitor.lookupAccount(accountPath);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]